How could they do that?

image

how? I think its not have easy way

By using DataStores they can store metadata for each user. They then simply load the data when you join the game and send it to the client to display.

On the left is an OrderedDataStore.

If you were referring to the number abbreviation, there is many open source modules to do so. A shameless plug to my abbreviate module which performantly does this and provides many other useful abbreviation methods (if you want a standalone Module for that specific method, you can simply copy my numberToString method)

3 Likes

… I talking about how script found my rank in OrderedDataStore
(101 and low rank)

1 Like

it shows your stats because it is using a localscript firing an remotefunction to get the player data

1 Like

Adding onto that:

The server gives the player, you, your stats. The player then displays the stats on the leaderboard. Because the player displayed the stats and not the server it only shows for you.

See client-server model. (In this case client is another name for the player.)

1 Like

This is not what the OP is asking; I think they understand how the UI is displayed.

They’re specifically asking about how the user’s “ranking” can be displayed via OrderedDataStores - this is in fact a difficult thing to achieve at such large scales; I would have to guess that they may be using an external provider like PlayFab which could return the player’s ranking.

4 Likes

They most likely are not using OrderedDataStores to show your rank. They are storing this data under a regular DataStore as well as the OrderedDataStore.

1 Like