Can I calculate somehow how long a player has been offline as in how long they have not played the game for? Like if they take a 1 hour break or play the next day (48 hours) etc? I'm assuming I can use datastores but I don't know how I'd save the time to compare?
COMMUNITY QUESTION
Is it possible to calculate how long a player has been offline?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

5 comments
You could save the time that tick() returns and then subtract the new tick() when they join to see how long since they joined.
That makes no sense
Yes. It does. You can also use data stores @OP in conjunction with Phlegethon5778's idea but I recommend you use os.time() instead
Thank you for the help guys, I know how I'll do this now
np