Client variables question

Can hackers change variable values? If so, how do they do it?

1 Like

hackers can change client side variables but not server side so as long as its used only for updating ui Etc on clients it won’t matter if they change it. just make sure to do all checks for actual data on the server

Should I send data from variables from server scripts over to client with remote events if I want to use it for players?

Hackers can fire RemoteEvents really easily from what I know. I don’t think they can use FireClient() though, so it should be fine.
They might be able to change the variable when the client receives it though. With how easy hackers I feel like it’s better to make your own anticheat but idk.

They can fire the client, with custom variables or wanted ones. [charlimit]

no just set it as attribute on the player object or as a value as descendant of the player
then all clients can see it even the player if needed

How would they do that when they can’t access the server? FireClient() is fired from ServerScripts…

Pretty sure they can through dex, even if they can’t they could just call the function from the script using it (if it’s made into a function)
Though if everything is controlled on the server it won’t matter

they can only fire remotes and if you do a global debounce for remotes they can’t just random fire over and over. Also as long as you do checks on server you should be good

They can also see what is in workspace, replicated storage and playergui…

one day maybe roblox will implement an anti cheat/hack for pc but until then just code for it

Sorry if this is a little delayed, I had to think a little. Is there a way to make data sent from a event from the server only viewable in the client?

Exploiters can see everything your localscripts can see.

No, I mean if I can make the variables unmodifiable by the client

No, you can’t, anything your localscripts can do, an exploiter can do as well.