Let’s say I created an OrderedDataStore called “KOs”. If there are a total of 1000 players in the DataStore, is there any way to retrive my current ranking of all those players?
Example:
“Your current rank is rank: 534”
I couldn’t find any information on being able to do this with OrderedDataStores…?
The only way I’m aware of is to get the DataStorePages object and count up all the player until you reach who you’re looking for.
This should obviously be a bad idea. You’ll eat up your allowed data store requests with every page. You’ll have many pages if your game is popular. You don’t get a lot of requests for DataStorePages either, so this would not be a good idea at all.
This will only be feasible if you have a small list – something ideally around 700 or less, which is the most amount of entries you’ll be able to get if you have one player in the server. (Max entries per page is 100)