How to make a monthly leaderboard

Hi, how would I make a monthly leaderboard?
I just basically want to make a leaderboard that resets every 30 days. How would I do this?

I know how to use tick() for this, but I just need help executing it.

Thanks,
sparky big noob

Please use the search bar.

Also, as one of the posts suggest, I would start out with this video tutorial and tweak it to your advantage:

It’s not exactly something you’re trying to accomplish, but try to borrow the concept of time from it.

2 Likes

I know how to do this and have a working program for it.
Also mine isn’t a Tick() version or multiple leaderboards.
It can also handle the automatic reset of all players online or not.
If you’re still interested contact me.

Its fine. I figured it out already.

I’m using:

 local dateTime = DateTime.now()
 local currentData =(dateTime:FormatLocalTime("MMMM","en-us")) --> month

And I’m not resetting just that one person … the 1st person to trip the reset, resets everyone’s data.
It uses the same Datastore over and over. Right in the player added function is where you do your test from separate data just for time. Time is different you reset everyone. Even works in real time as the leaderboard re-wrights itself it gets the new reset data … logged on or off you’re getting reset.

Mine makes an entirely separate datastore for the month.

It is set up right now to re-set on the hour. You could even do it by the year! :eyes:
But, I still have testing to do. I’m not 100% sure it’s got everything covered yet.