How do I make a daily reward system?

As the title says, how do I make a daily reward system? Bits of code and information is GREATLY appreciated.

1 Like

I found this post: Daily reward system not saving time

It basically saves the time when you joined using os.time(), and then the next time you join the game, the code checks if the time it is now minus the time it was when you last left was greater than 24 hours (86400 seconds)

Please search if someone has had your problem before you make a post

I know, but how do I do that as in how do I write it?

I believe you can find tutorials on YouTube and DevForum if you search hard enough. Happy coding!

2 Likes

The majority of the code that you need is in that post; it just needs a little bit of rewriting to fit your needs. You shouldn’t be asking people to write scripts for you.

Here’s something to get you started:

(some code may or may not be outdated)

2 Likes

Thanks, I will look into that!

1 Like