I’m trying to make a daily reward timer, It’s my first time doing something like this.
I want it where it says “Hours:Minutes:Seconds” and it saves for the player when leaving and joining
Something like this
Any help
I’m trying to make a daily reward timer, It’s my first time doing something like this.
I want it where it says “Hours:Minutes:Seconds” and it saves for the player when leaving and joining
Something like this
2 ways you can do something like this
a) chest timer resets daily (easier)
b) start daily timer when player opens chest (somewhat harder)
for b you’d probably just want to save when they opened the chest and start a countdown specific to them
and for a you’d just check if the player has opened a chest yet today
use os.time.
for the hours minutes seconds thing use os.date to format
ill use option a, but thank you for the help
A bit late but use this, it will output time in the format “00:00:00”
os.date("%X")
I wrote a slightly in-depth Forum page about this here.