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

Is it more secure putting a remote event serverscript inside serverscriptservice?

Asked by 5 years ago

So there was this tool I made and it fired a block into mouse.hit.p

local script and serverscript were both inside the tool but my friend suggested that i remove the serverscript from the tool and put it inside serverscript service is it true that it is more secure?

1
Having it in the ServerScriptService means you can access the script from that place, whilst not being able to do that with the tool. It's not more Secure, but instead, more cleaner and you can get to the script in a more efficient way. TheOnlySmarts 233 — 5y
0
Server bytecode is not even replicated to clients but you should still put it in ServerScriptService nonetheless. User#24403 69 — 5y

1 answer

Log in to vote
0
Answered by
BenSBk 781 Moderation Voter
5 years ago
Edited 5 years ago

No, this is not more secure; clients cannot view or change the content of (server-side) Scripts.

However, many programmers (including myself) prefer to keep all (server-side) Scripts inside ServerScriptService for organisational purposes. I find that having all of my Scripts in the same location makes development easier in the long run. To be more specific, I have one Script with several ModuleScripts; this way, my code is both re-usable and separated into logical parts.

Each developer has their own preferred way of doing things. You should just play around with a few different styles, and use what suits you best.

Ad

Answer this question