okay, so, you can go to a game's page, click leaderboards, and see a leaderboard of players and a leaderboard of clans based on player points. so i'm thinking there should be a function of the player points service that allows you to receive the player points leaderboard in-game. i'll give a script example
local board = game:GetService("PointsService"):GetGroupPointsLeaderboard(10,false)
--10 is the number that appear on each page. ascending is set to false (i'm not sure if that would even be necessary, though)
local topten = board:GetCurrentPage()
for _, v in pairs(topten) do
print(v.Name, v.Points)
end
--end of script
so basically, it works really similarly to an ordered datastore. i know it seems kinda useless because of the fact that you can easily see the group leaderboard by going to the game page and scrolling down slightly, but i feel like people would actually notice a leaderboard in-game and would be more competitive based on it. so yeah. that's my idea
|