I’m Making a Season Pass for My Game. Its Like you Get Challenges Every 24 Hours And You Get Rewards Completing them.
I Have Made a function to Randomly Give Challenges to The Player But I Have No Idea How I Could Call the Function Every 24 Hours. I Think this Can be Done Using os:time() But I Dont Know How.
Basically, save the “last called at” time by inserting the result of os.date into a DataStore when a new challenge starts. Check that value when a player joins.