Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

I wanna make a top 10 leaboard of all time how to do this???!?/

Asked by
hokyboy 270 Moderation Voter
6 years ago

Hello I wanna make a top 10 players in my game of all time how to do this is have a save system in it and data storage

1 answer

Log in to vote
0
Answered by 6 years ago

You'll need an OrderedDataStore and probably the DataStore Manual. There is also the OrderedDataStore Manual and a Sample Place that you can try out and use the code from (it is not copylocked).

The idea is to save the score of each player in an OrderedDataStore (assuming it's higher than their previous best, presumably). Then, whenever you want the top 10 (or even the top 100), you call GetSortedAsync (read the manual to learn about its limits - you can only call it so much).

0
Thanks hokyboy 270 — 6y
0
You're welcome. If it helped, consider Accepting the answer. chess123mate 5873 — 6y
0
lol kinda late with it but i did it hokyboy 270 — 5y
Ad

Answer this question