I am wanting to make a Global Leaderboard for my game, for the most “cookies baked” which is a number value. I am wanting to display the top 50 players for this statistic.
I’ve already tried looking at tutorials, free models and the documentation however they are all setup for the datastore only having one value, while my datastore is setup in a table like this:
{
Cookies = 0,
Coins = 0,
Gems = 0,
Inventory = {
EquippedTool = equippedTool,
OwnedTools = ownedToolsTable,
EquippedRank = equippedRank,
OwnedRanks = ownedRanksTable,
EquippedDNA = equippedDNA,
OwnedDNAs = ownedDNAsTable,
},
Statistics = {
TotalCookies = 0,
TotalCoins = 0,
TotalGems = 0,
TotalEggs = 0,
Playtime = 0,
},
Rewards = {
DailyReward = 0,
GroupReward = 0,
},
}
How would I be able to just get the top 50 players globally for the Statistics.TotalCookies value, with the datastore “A - Testing”, and keys being “Key_USERID”?
I don’t need help creating the GUI or anything, I just want to be able to get the top 50 players for that value, and the table of their datastore above.