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

How do i make a leaderboard? [ CLOSED ]

Hello! I need help making a Cash / Money leaderboard. These lines of scripting are confusing me...

1 answer

✓ Accepted answer

Very easy, actually!

game.Players.PlayerAdded:connect(function(plr)
	if plr then
		local leaderstats = Instance.new("IntValue")
		leaderstats.Name = "leaderstats" --The name of this has to be leaderstats for it to work
		local cash = Instance.new("IntValue", leaderstats)
		cash.Name = "Cash"
		cash.Value = 3
		local money = Instance.new("IntValue", leaderstats)
		money.Name = "Money"
		money.Value = 2
		leaderstats.Parent = plr
	end
end)

1 comment

0

Thank you very much!

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