Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Proper script/object placement?

Hi guys, I used to script before, but stopped when all these new storages came out (Replicated/serverscript/etc). I just wanted to ask what the proper placement for certain objects are. I understand that they were added largely for theft control.

ie. Before those all came out, I pretty much put all my scripts in workspace along with the map. I also put local scripts and other objects like tools/hops in lighting for easy access when needed. Guis in startergui etc

Now it just seems all soo complicated for me, having to put remote functions to call or fire a script? idk any of that. Im trying to take it one step at a time. Thank you

2 comments

0

I recommend you check out an answer of mine where I do explain in detail the suitable places for scripts in Workspace.  https://scriptinghelpers.org/questions/55070/whats-the-best-place-to-store-local-scripts#53918

0

Thank you!

1 answer

✓ Accepted answer

Usually, the placement doesn't really matter, but here are some common placements that people use:

ReplicatedStorage: Remote Events and Remote Functions tend to go here a lot. You usually want to use:

local RS = game:GetService("ReplicatedStorage")
local event = RS:WaitForChild("RemoteEvent")

ServerScriptService: This is where you usually put loose scripts that don't really belong to a certain object. Main scripts (like handling rounds or the sort) go here. Module scripts are also sometimes placed here.

ServerStorage: You just tend to put objects that don't belong anywhere else here. This just keeps them stored somewhere until you need them.

I hope this helped!

3 comments

0

Does the map stay in workspace?

0

Yes, unless you were using random maps. In that case you would put them in ServerStorage and when one is chosen, change it's parent to Workspace

0

Thank you!

This discussion is preserved as it was. New answers, comments, and votes are closed.