Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How can I make a seconds in game leaderboard?

How could you do it? I'm making a game and, how could you 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)

1 comment

0

while wait(1)do to save a line

This discussion is preserved as it was. New answers, comments, and votes are closed.