How would you delete a player's datastore without them joining the game?

Basically doing an action without the player joining the game. Kind of like keeping track of daily logins.

If you’re looking to remove a single players datastore via the key, you can do so with :RemoveAsync.

However if you’re looking to have stats that reset daily per say for everyone, you could do something along the lines of renaming the datastore based on the year and day of the year it is, as there is no limit to the number of datastores a game can have.

You can make another datastore, that stores datastore name that other players use, so when you change it, all the players will have to use a new datastore, which has no data stored.

Just do

dataStore:RemoveAsync(KEY_FOR_THAT_PLAYER)

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