I’m about to make a weapon module, and I want to know if module scripts are secure, so I can make one.
The last time I tried to make a weapon module, the module would get stuck in a debounce, but now I know better to put the debounce in the activation script instead. But is there any way someone can spam the module script’s events? Also, I’m putting the module script in Replicated Storage.
Only if they are located in ReplicatedStorage or any viewable service.
If they are in ServerStorage or ServerScriptService, the exploiters can not access it.
But would that limit the script to focusing on one person at a time if not in Replicated Storage?
I dont think so.
If your module is important - keep it in ServerStorage or ServerScriptService.
If not - keep it in ReplicatedStorage.
Take a note:
You cant access anything located in ServerStorage/ ServerScriptService from the client.
Yeah, just making sure, since last time it was a real circus and people were mad weapons weren’t working. Thanks!
Remember : modules cant run by themselves. They always need a require call from either the server or client.
if a hacker changes a module script it will not replicate to the server so the server will continue to use the original module script so module scripts are not hackable
your module script has no effect to a exploiter if your game can be hacked your module script will have no effect on the outcome
Just adding note: For ModuleScripts visible to the client, the bytecode of respective ModuleScripts will only be sent if a LocalScript requires it, so if your LocalScript doesn’t require it, to the client it’s ModuleScript with absolutely no content. (Still if you have ModuleScripts not used by the client then you should put it on a non-replicable service in the event of Roblox changing this behavior)