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

How can I make a seconds in game leaderboard?

Asked by 10 years ago

How could you do it? I'm making a game and, how could you make a seconds in game leaderboard?

1 answer

Log in to vote
1
Answered by 10 years ago
game.Players.PlayerAdded:connect(function(Plr)
    local stats = Instance.new("IntValue")
    stats.Parent = Plr
    stats.Name = "leaderstats"

    local time1 = Instance.new("IntValue")
    time1.Parent = stats
    time1.Name = "Seconds"
    time1.Value = 0

    while true do
        time1.Value = time1.Value + 1
        wait(1)
    end
end)
0
while wait(1)do to save a line 1waffle1 2908 — 10y
Ad

Answer this question