Consecutive daily rewards

This is false, it’s the other way around:


Use os.time() on server because different servers can be in different timezones - tick() is based on the local time of the machine that is running the script.

ohhhh, sorry about that…


1 Like

You could add a Streak variable. Saving that along with LastLogin.
Each day add 1 to Streak then save. after 5 days reset it to 1 again just after the player receives their 5th day reward.

Rewards can be in a table like:
StreakRewards = {10, 20, 30, 40, 50}

using their streak to identify what index the day is like:
Streak = 3
print(StreakRewards[Streak]) – prints 30
use that to add to whatever.