Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Proper script/object placement?

Asked by
Infocus 144
4 years ago

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

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 iDarkGames 483 — 4y
0
Thank you! Infocus 144 — 4y

1 answer

Log in to vote
1
Answered by
Nckripted 580 Moderation Voter
4 years ago

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!

0
Does the map stay in workspace? Infocus 144 — 4y
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 Nckripted 580 — 4y
0
Thank you! Infocus 144 — 4y
Ad

Answer this question