Leaderboard

Scripts · by Brixborg

Puts a Points score for every player on the player list.

Use it in your games: in the studio, open View > Archive, go to the Scripts shelf and pick "Leaderboard".

The script

-- Leaderboard: gives every player a "Points" score on the player list.
-- Other scripts add to it:  player.leaderstats.Points.Value = player.leaderstats.Points.Value + 1

game.Players.PlayerAdded:connect(function(player)
	local stats = Instance.new("IntValue")
	stats.Name = "leaderstats"
	local points = Instance.new("IntValue")
	points.Name = "Points"
	points.Value = 0
	points.Parent = stats
	stats.Parent = player
end)

More scripts