How would I script a global leaderboard?

I’m making a clicker game and I was wondering, how should I save, how should I show it, and how do I make special rewards for being up on top. Also what type of code should I use, I feel like datastoreservice might be useful, but I’m kinda bad with it, so I’m just wondering how I would make one.

If you can’t help, thanks for taking the time to read anyway

2 Likes

I would use DataStoreService since it lets you organize your data into a leaderboard without having to make a complicated script. You could make a script that checks maybe every 1-3 minutes for the top positions of the leaderboard and refreshes it, and reward the top players if they are in the game (and if they have gotten the award–which again can be done through DataStores)

DataStoreService would be your best option for organizing your data into a leaderboard (since there is a whole entire system in place to organize data by highest values)

You might find this video useful for making a Global Leaderboard:

You can also host your data through an external service, like GitHub, and make the table through that. This system will require you to use an API though, and may be less secure than using the DataStoreService. Plus it isn’t free.

2 Likes

Thanks, i’ll try it out (30 words or whatever)

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.