How to detect when the client tries to change a variable in a module script

The server or client can easily require my module script, and then just say module.Variable = false.

So how would I detect and block the client from doing this?

This is my module script:

local config = {
	Enabled = true,
	MaxWalkSpeed = 35,
	checkRemoteEventSender = true
}

return config

If someone tried to set Enabled = false for example. I’d allow it on the server, but how do I block it on the client.

if you are talking about hackers changing your values, it will only change on their copy of the game

Yeah but on module scripts I’m pretty sure both server and client can change it.

no it will only change for the hackers game. the server will not be affected by it.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.