Is there a way to track real-world time? (And continue running even after a player leaves)

For some context: I’m attempting to make a ban-system for a jail where it tracks the time since when the player first got jailed, but since I dont want the player to actually have to sit there in game the whole time, the countdown to go down even when they’re not in game.

I remember seeing a similar system in a different game where the jail time countdown went down when out-of-game.

I’ve been searching, but haven’t came across anything that could help.

Yes. You could use os.time or tick + data store to save their ban time. I am sure there are more elaborated posts on that on the forum.

os.time seems to fit my request the best. Thank you!

1 Like