How to reset someone data?

Today, my game was hacked and the hacker set to many players very much Things.
How do i reset their data?
I dont need to reset data on every players, only on them

1 Like

You can use Datastore Editor to modify Datastore Keys, or alternatively you can do the following from this article!

1 Like


I deleted their Data store key and they still in a leaderboard
How do i get rid of them

Is this a leaderboard separate from actual stats? You may want to clear the data there too! (Leaderboards sometime use Ordered Datastores so you’ll have to wipe the players data on the ordered Datastore too!)


idk its using global leaderboard

DataStore:RemoveAsync(Key: number)

Although I do recommend acquiring the plugin “DataStoreEditor” for the fastest & easiest way of adjusting data stores!

1 Like

yes i used DataStoreEditor, i deleted keys of these players but they still in leaderboard

I’ve already suggested both things mentioned here

If you want to completely wipe the whole data, then just replace the DataStore name, in this case you can make it :GetOrderedDataStore("NewGlobalLeaderboard_" .. statsName)

Edit: my bad, I realized you need specific player’s data removed.

They just want one gone, I’ve posted a solution.

I dont want to do this, i want to wipe data from certain players

My bad, I corrected myself. @robjetbot should have posted the actual solution if done correctly.

so where i put this script and what do i do then

Unfortunately the only way I can help here is by providing past solutions haha, I haven’t gotten a chance to work with ordered datastores in my current environment!

Using a script to use RemoveAsync seems impractical, as you’d have to restart the servers, but it is doable.

Alternatively, you can use the console using F9 in-game and paste the code there. Then it should clear their data, and when the leaderboard updates, they should be gone.

  1. It is extremely possible currently existing servers are overriding leaderboard data and/or the player is still in-game when you are wiping their data in studio, meaning you will have to temporarily shutdown and disable access to perform maintenance. In the future, you can setup some sort of kicking mechanism via MessagingService for cases like these.
  2. It is also a possibility that the leaderboard is cached on the existing servers. Try launching a new server/playtest and see if it updates.

nvm i found a way, thanks for recommend me data store editor

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.