Roblox Wiki
Roblox Wiki
36,578
pages
Not to be confused with the player list, as well as the discontinued feature on game details page that used player points.
2024 Leaderboard

The current player list that shows the stats of all players, which was added on February 20, 2024.

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 Script in ServerScriptService or Workspace.

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[]