I want to be able to wipe a players data store with a remote event being fired through a gui but i don't know how. I am not asking for someone to completely write a script for me but how would i 1, wipe the specific players datastore for a ban datastore, 2, make the remote event doing so secure so exploiters couldn't fire it and wipe anyones datastore?
Help with making a secure remote event that wipes a specific players data store?
2 answers
I think your best bet would be to set a bunch of data to 0 such as a Cash leaderstat, and do it so when you fire the remote event you would have a temporary key inside of the script and the script that senses if the remote event is fired would check if the key is valid, but I'm no Einstein, those are just my thoughts.
Run the wipe script once and make sure it saves and delete it so no one accesses it. I mean write a script then execute it somewhere where it will save(Maybe roblox studio with api enabled so it saves).
2 comments
i dont know how to wipe data store that was my original question
So lets say you use the key as player id (data store key). You can get the players data store with the key and set it to zero with setasync
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
You can't wipe a datastore