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

where is the most ideal place to put remoteEvents and ServerScripts for OnServerEvents?

Asked by
wookey12 174
6 years ago

i've made a really basic gun that is compatible with FE. i want to make more. is it really the most ideal place to have multiple RemoteEvents in the ReplicatedStorage just for multiple guns? to me it just seems unorganized. also are the ServerScripts limited to only serverscriptservice? in all of the tutorials i've seen for FE, they've all had them in the same spot.

0
Server Scripts are not limited to SSS, but it is best to put them there so people cannot steal your code (the client can't see things like ServerScriptService or ServerStorage). As for remote events, there isn't really a better way to store them or a better place to put them. You can kick them in a folder in Replicated Storage, but it's all the same. Gey4Jesus69 2705 — 6y
0
can keep them*** Gey4Jesus69 2705 — 6y
0
alright, thanks! just wanted to make sure it couldn't get more organized. wookey12 174 — 6y
1
ServerScripts can't be copied, bytecode from the server doesn't replicate to the client @gioni01 fuj 49 — 6y

1 answer

Log in to vote
1
Answered by
cabbler 1942 Moderation Voter
6 years ago

You can put server scripts anywhere and the client can't see their content. ServerScriptService is for organization. Same for RemoteEvents; general-purpose events should go in ReplicatedStorage but for tools like your gun most people put the event right near the handle. Be free :)

0
alright thanks, so im able to put both the script AND the event right in the tool? wookey12 174 — 6y
Ad

Answer this question