(Sorry for my terrible english but im a little bit upset)
Ok so a couple of hackers entered to my game and this is what happened:
Image:
https://ibb.co/SRR9gbb
Im tired of reseting the whole score table, so i want to remove these specific hackers scores. How can i do that? I need to put a code in the Command Bar? (Keep in mind that i dont have the remote idea how to do that, so please explain very carefully)
To wipe their data, first, you need to ofc ban them, use this:
local bans = {"edg90210", "gabo253464", "SF_REACHER", "Casilini"} game.Players.PlayerAdded:Connect(function(p) for _, v in ipairs(bans) do if p.Name == v then p:Kick("wooh funny exploit man xddd") end end) end)
It searches through the table of banned players, then if they're in it it kicks them Then you'll need to actually wipe their data:
local dss = game:GetService("DataStoreService") local ds = dss:GetDataStore("DATA_STORE_NAME_HERE") local bans = {"edg90210", "gabo253464", "SF_REACHER"} game.Players.PlayerAdded:Connect(function(p) for _, v in ipairs(bans) do if p.Name == v then p:Kick("wooh funny exploit man xddd") ds:SetAsync(p.UserId, 0) end end) end)
This then further resets their datastore.