I was wondering how to make an anti changing leaderstats script, so exploiters aren’t able to change their leaderstats.
Are you not handling leaderstats on the server? If you are, then anything the player does will only be local.
As a past exploiter I can confirm what @CAP7A1N said. Exploiters can only run code on the client and not the server.
So… is there a way to prevent them from changing it?
Why do you need to prevent exploiters changing their leaderstats locally?
Whatever players change locally won’t be visible on the server, for other players as well.
If you don’t handle incrementing values on the server then this is a design flaw already.
They can only make it appear that they have more. They don’t actually have more.
As long as you handle everything on the server it shouldn’t matter if the client locally changes it.
hmmmm ok. and is there a way to reset a players specfic datastore like cash,
So I shouldn’t be worried about it?
As long as your remote events are secure, and you check whether they have enough of something on the server rather than the client, exploiters shouldn’t be an issue.
No. As long as you do everything leaderstat related in a Script (preferably in ServerScriptService) then they can’t do anything.
That’s another topic, but :
local DataStore = DataStoreService:GetDataStore("ExampleStore")
DataStore:RemoveAsync(key)
Just reset the value on the server?
does that reset a specific player?
It does not, just access a certain player’s leaderstats and change any values just for that player, from a server-script.
Only that player’s values will be reset.
does that reset a specific player?