Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to Remove players scores?

Asked by 4 years ago

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

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. Ziffixture 6913 — 4y
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. Ziffixture 6913 — 4y
0
You can either make a program to ban their IDs, or simply clear their data. Ziffixture 6913 — 4y
0
If you're still experiencing issues, contact my discord and I'll help you fix your code. Ziffixture 6913 — 4y
View all comments (2 more)
0
I want to clear their data benjinanas 50 — 4y
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 benjinanas 50 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago
Edited 4 years ago

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.

0
Don't forget to patch the exploit! WideSteal321 773 — 4y
0
(and then report them to roblox) WideSteal321 773 — 4y
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 benjinanas 50 — 4y
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 WideSteal321 773 — 4y
View all comments (3 more)
0
I think? benjinanas 50 — 4y
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( benjinanas 50 — 4y
0
yes WideSteal321 773 — 4y
Ad

Answer this question