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

How to make a leaderboard script?

How do you make a leaderboard script?

3 answers

✓ Accepted answer

Scripting Helpers is NOT a request site! Your post will be removed if it does not comply with scriptinghelpers.org's rules. Please see this blog post for more information.

1 comment

0

He's not asking for a free script, he's asking how to do something.

To make a value appear on the leaderboard, first you create an IntValue inside a player. That IntValue MUST be named 'leaderstats'. After you do that, you can create other values inside the leaderstats value. Those values will appear on the leaderboard.

You should do all this with a player added event.

game.Players.PlayerAdded:connect(function(plr)
	local ls = Instance.new(IntValue,plr) --Create leaderstats.
	ls.Name = "leaderstats" --Name leaderstats.
	local points = Instance.new(IntValue,ls) --Create a value in leaderstats.
	points.Name = "Points" --Change its name.
	point.Value = 10 --Change its value.
end)

NOTE: Do not test this is PlaySolo mode! PlayerAdded events do not fire in PlaySolo! Start a server instead.

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