I am really confused on the best place to put my scripts. Please help me with this problem. Also where do you keep your scripts? Honestly I don't have a problem I am just curious, I am writing this part now because it wants me to put more sooo...
Scripts can go anywhere you want them to be, the best place to put it if you want your things more organised is to put it in ServerScriptService
. It's a place to put the scripts (only if you want to) and you have access to more things with the place. (your game's server) It's optional, but it's a good way to organised or if you have a script that reaches to other things and places.
Script
objects (scripts that run on the server) should all go into game.ServerScriptService
, the proper container for them.
LocalScript
objects (scripts that run on the client) should generally go into game.StarterPlayer.StarterPlayerScripts
, unless you have a reason to put it elsewhere.
ModuleScript
objects should go into game.ReplicatedStorage
if the client and server both need to require it, game.ServerStorage
or game.ServerScriptService
if only the server needs to require it, or game.StarterPlayer.StarterPlayerScripts
or game.ReplicatedStorage
if only the client needs to require it.