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

What are the properties of a leaderboard?

Asked by 10 years ago

I've made a custom leader board and want to know what I can edit from color, size, etc. Can you list some properties that I can use with an example code of it? Thanks!

1 answer

Log in to vote
-1
Answered by 10 years ago

If you aren't already, you could use ROBLOX Studio to view the properties. Other than that, I don't know what you mean by leaderboard. Please elaborate.

As for the example code. This should be a normal ROBLOX leaderboard.

game.Players.PlayerAdded:connect(function(p)
    l=Instance.new("IntValue",p)
    l.Name="leaderstats"
    t=Instance.new("IntValue",l)
    t.Name="Time"
end)

After that you can edit values by saying:

game.Players.PlayerAdded:connect(function(p)
    l=Instance.new("IntValue",p)
    l.Name="leaderstats"
    t=Instance.new("IntValue",l)
    t.Name="Time"
end)

while wait(1) do
    t.Value=t.Value+1
end

Hope it helps.

Ad

Answer this question