Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

How to make a custom leaderboard?

Asked by 10 years ago

How can i make a custom leaderboard?

2 answers

Log in to vote
0
Answered by 10 years ago
function onPlayerEntered(newPlayer) -- when player enters gets gives leaderboard
    local stats = Instance.new("IntValue")
    stats.Name = "leaderstats"

    local xp = Instance.new("IntValue") -- change xp to the name of the want you want it to be make sure there are no spaces and change xp.value = " what you want the player to start with"
    xp.Name = "XP"
    xp.Value = 0

    xp.Parent = stats

easy

Ad
Log in to vote
0
Answered by 10 years ago

I guess that @above would work but I searched Leaderboard on the wiki and it tells you how to do it.

Answer this question