Trouble figuring out how to do Daily Challenges

Hey!

I am trying to figure out how I can do something like Daily Rewards, or Daily Challenges? I don’t know how to start, since I am really wanting to use Daily Challenges in my game. Let me know if you have any advice on how I can script it.

Thank you very much!

Sincerely,

papahetfan

you need to use datastoreservice and save os.time() and in order to get it to os.time() - datastore:getasync and after that do if timeleft >= timeinseconds then --reward and thats it

Maybe a starting point although I might do things slightly differently if I were to write this again: