How do I reset a Players Data without resetting everyone’s Data?
Hi!
You can use the handy plugin called “DataStore Editor”.
You do not quite delete any data, but you can set it to their default values. (ect. 0 coins ect. ect)
Look for that player’s ID in the data store( known as the key), and set his data to 0 or anything else.( if it contains strings then act accordingly, if it contains numbers…etc)
As mentioned above, you dont really remove their data. You are just setting their data to default/0.
I believe there are some posts on this already on the forum.
As the previous replies stated you could simply set all of the values to zero. However you could also use RemoveAsync. I’m unsure on your use case here however if you’re dealing with Right To Erasure requests there are a few posts on this forum which detail ways to remove data.
https://developer.roblox.com/en-us/api-reference/function/GlobalDataStore/RemoveAsync
Thank you! I just had to reset someone’s Data.
Sorry for the bump but i recently had someone cheat the leaderboard in one of my games and I’ve tried everything to clear there data i tried the datastore editor plugin i ran code and nothing worked.