How could you do it? I'm making a game and, how could you make a seconds in game leaderboard?
COMMUNITY QUESTION
How can I make a seconds in game leaderboard?
1 answer
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)
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
while wait(1)do to save a line