Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to Remove players scores?

(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)

6 comments

0

I assume this is uploaded to a DataStore, that itself is something you need to be worried about. You need to resolve that vulnerability right away.

0

There is a plugin that allows you to read and write to Data Stores that you have in your game, download it, and cross-reference their usernames with their UserIds.

0

You can either make a program to ban their IDs, or simply clear their data.

0

If you're still experiencing issues, contact my discord and I'll help you fix your code.

0

I want to clear their data

0

Simply as that, but i dont have any idea of how datastores works, i only know how to reset that global scoreboard by changing the name of the score or something like that

1 answer

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.

7 comments

0

Don't forget to patch the exploit!

0

(and then report them to roblox)

0

Thank you, but i already banned them with admin. There is a way to remove their data using a command in the studio? Because, from what my script kowledge see, that script remove their data when they enter the game

0

I have already done this in the second half of the script, if you made the code then you should know what I mean

0

I think?

0

Oh im so sorry, I just saw it. So, I have to put that code in a script, right?. So, If another hacker enters the game again, do I add their name to that list with the other hackers? I already said I was a noob at this right? x(

0

yes

This discussion is preserved as it was. New answers, comments, and votes are closed.