Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I create a DataStore that wipes itself every 24 hours?

Asked by 4 years ago

So, I am trying to create a DataStore that wipes the data for a player after a given amount of time. To make this easier to understand, let me tell you what I am trying to achieve.

I want my application centre to remember when a player has applied, once they have applied they will no longer be able to apply for another positions until 24 hours have passed. Now I can make a simple DataStore, but I cannot do the part about the time, as I have never played with it before. This is all specific to the player too, it wouldn't wipe every players data.

1 answer

Log in to vote
1
Answered by
Robowon1 323 Moderation Voter
4 years ago

Try using os, it's server-side so it can't be exploited: https://developer.roblox.com/en-us/api-reference/lua-docs/os

Ad

Answer this question