Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do you get the rank of something from its key in an OrderedDataStore?

Is there any way to get the rank of a certain key in an OrderedDataStore with minimum reads? I know you could get the value of a key and iterate through all keys with that value, but is there any way to just get the one key's rank? For example, if you wanted to get the rank of a specific person on a leaderboard.

1 answer

An OrderedDataStore is a variant of GlobalDataStore. Therefore, It inherits all of this Instance's methods, that including :GetAsync().

1 comment

0

But if you use GetAsync, can you get the rank of the key instead of just the key's value?

This discussion is preserved as it was. New answers, comments, and votes are closed.