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
You can use Datastore Editor to modify Datastore Keys, or alternatively you can do the following from this article!
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!)
DataStore:RemoveAsync(Key: number)
Although I do recommend acquiring the plugin “DataStoreEditor” for the fastest & easiest way of adjusting data stores!
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
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.
- 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. - 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
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.