I already have my top time datastore set up fully working and everything, but I don’t know what to do for a leaderboard for this. I know to use a surfacegui on a part and stuff like that, but how am I going to make a leaderboard out of it?
See this:
All sorted functions are located in GetOrderedDataStore
local is_ascending = true
local the_quantity_of_players_to_be_in_the_leaderboard = 50
local leaderboardDS = game:GetService("DataStoreService"):GetOrderedDataStore("LeaderboardResult")
local sortedPlayers_Table = leaderboardDS:GetSortedAsync(is_ascending,the_quantity_of_players_to_be_in_the_leaderboard)