Timer that runs when player is offline

so im making a parkour game Troublesome Parkour - Roblox? and i just made a tool thats called a skip token that lets u skip to the next room. Now i want to add a cooldown system for when u use the skip token u wont be able to use it again until like the next day i know this is possible but idk how to do this lol
https://gyazo.com/5b1e740fc93a708231290569b3874eb7

Do os.date when the person leaves the server (in your datastore), and save it to their data. When they join the game again also do os.date and subtract the two to figure out how much time passed since they were offline. If you need anymore help lmk.

2 Likes