what does require() actually do in roblox studio
Every tutorial uses require with a modulescript and I just copy it without understanding. What does it return, and when should I use a modulescript instead of putting everything in one script?