Hello! I need help making a Cash / Money leaderboard. These lines of scripting are confusing me...
✓ ANSWER ACCEPTED
How do i make a leaderboard? [ CLOSED ]
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)
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Thank you very much!