Leaderboard

:Not to be confused with the player list, as well as the discontinued feature on game details page that used player points.
In Roblox, a leaderboard is a display of players' stats. Leaderboard stats often included KOs and WOs, currency, level and experience points, time played, and rounds survived. A leaderboard is created by placing a value named "leaderstats" inside of a player and then placing values inside of that.
== Creating a leaderboard ==
The following example creates a leaderstat called "Money" and sets the default value to 100. This should be located in a in or .
game.Players.PlayerAdded:Connect(function(plr)
 local ls = Instance.new("Folder")
 ls.Name = "leaderstats"
 ls.Parent = plr
 local m = Instance.new("IntValue")
 m.Name = "Money"
 m.Value = 100
 m.Parent = ls
end)
=== Resulting tree ===
Changing a leaderstat is as simple as changing the value of the IntValue created.
game.Players.PlayerName.leaderstats.Money.Value = game.Players.PlayerName.leaderstats.Money.Value + 10
== Gallery ==
CurrentPlayList.png|The former leaderboard, used from January 25, 2020 to February 2024.
2019Topbar.png|The Roblox leaderboard from August 28, 2014 to January 24, 2020.
Leaderboard.png|The Roblox leaderboard from late 2012 to August 27, 2014.
File:Mid 2011-Late 2012 Leaderboard.png|The Roblox leaderboard from Mid 2011 to Mid 2012.
Example of Roblox leaderboard..jpg|The Roblox leaderboard from 2006 to early 2011.
Category:Experience features