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

Can someone give me a brief explanation on how to make a leader board(leveling up)?

Asked by
tumadrina 179
10 years ago

(I don't know if this has anything to do with scripting, if it doesn't I'll delete it right away) for example I'd like to know ho to make someone rank up and stuff, can someone help?

1 answer

Log in to vote
-1
Answered by
Perci1 4988 Trusted Moderation Voter Community Moderator
10 years ago

To make a leaderboard, you have to create a value inside of a Player named 'leaderstats'. Then, create different values inside of the leaderstats value, and they will appear on the leaderboard. Do this with the PlayerAdded event.

game.Players.PlayerAdded:connect(function(plr) --When a player joins
    local stats = Instance.new("IntValue",plr) --Create the value
    stats.Name = "leaderstats" --Name it leaderstats

    local points = Instance.new("IntValue",stats) --Create a value in leaderstats
    points.Name = "Points" --Name it points
    points.Value = 0 --Make the value equal 0
end) --end
0
Thanks tumadrina 179 — 10y
Ad

Answer this question