Hey everyone. I know it isn’t possible to clear all data in a datastore, but is it possible to clear out or change a specific user’s value (on the leaderboard) when they aren’t ingame?
Yes, but you need to know the player user id. (if you save it using user ids)
1 Like
Would I have to enter something into the command bar, where can I do this?
You can do it in a server script or the command bar with this code:
game:GetService("DataStoreService"):GetDataStore("DataStoreName"):RemoveAsync("PlayerId")
All you need to know is the data store name and the players userid.
2 Likes
You would use :RemoveAsync to remove the data, :GetAsync only gets it.
2 Likes
Oops, my bad. Typed this in haste and forgot it was clearing a users data not getting it
Not a problem, we all make mistakes as no one is perfect. (:
Crazyman32 has released V3 of DataStore Editor recently, and it works like a charm, but you would have to purchase this plugin.
1 Like