Can exploiters edit Module Scripts

Ok, So I am making a pet system, and I wanted to have a list of pets and their rarities inside of a module script so that I can call it from the server side, I was wondering if the client can mess with the module script and make the rarities change and whatnot

if they have replication of it, they can modify it on their individual client, but not for others/the server. Store this in ServerScriptService or ServerStorage to hide it from clients and have only the server use it to decide rarities.

1 Like

Only if the module is requested from a local script.

So if i cant request it from a module script, how can i make the egg billboard gui show the rarities?

Make the module children of the ServerScript and request it.

local module = require(script.Module)

If the module is not inside ServerStorage or ServerScriptService they can modify it but only locally, so be sure to protect it.

You can request the module as i said.

If they are in ServerStorage or ServerScriptService then no, if they are in ReplicatedStorage or anywhere execpt (ServerStorage or ServerScriptService) then yes.

But what you could do is store the Module inside of a script if you would like.

I can request it from a local script inside of server storage? Im confused on your reply.

No, you cant access ServerStorage through a localscript.

You cant protect modules requested from local script, exploiters can modify it easily.

This was in case your module was called from a serverscript