I recently just saw quite a couple of posts about people’s scripts getting stolen, why and how does this happen, is it safe to keep modulescripts in replicatedStorage?
How can i prevent this from happening?
There’s two ways to steal scripts:
- Exploiters can grab a decompiled version from the client. This is only applicable to LocalScripts and ModuleScripts. If you want to keep a module out of sight, put it in ServerStorage or ServerScriptService. This will make it inaccessable to the client.
- Place file leaks. This can happen whenever either Roblox or your security fails and they are able to download the place file. All scripts will be accessibile in their non-compiled forms.
2 Likes
If your module script is called by a client script, it will get stolen no matter what. If it is called by a server script, exploiters can’t access it.
It’s impossible to prevent client sided scripts from being stolen, but server sided scripts can’t be stolen. Try to make scripts server sided when possible. That’s really all you can do.
3 Likes
are scripts in the workspace client scripts?
Nope. Client-Sided scripts can only run in one of these places:
- Inside of a Player/Character
- Inside of StarterGUI/PlayerGUI
- Inside of a tool
- In ReplicatedStorage
Every other place needs to have server scripts to run.
1 Like