Hi, I'm relatively new to ROBLOX coding, and I was making a simple Leaderboard which includes "Money" as a stat. I don't know what's wrong with my design, as it is the same as in the ROBLOX Wiki, but in a less compact way, so I understand it better
function CreateStats(Player)
local Stats = Instance.new("IntValue")
Stats.Parent = Player
Stats.Name = "Leaderstats"
local Cash = Instance.new("IntValue")
Cash.Parent = Stats
Cash.Name = "Cash"
Cash.Value = 0
end
game.Players.ChildAdded:connect(CreateStats)
When I test the game the leaderboard doesn't show up, but I don't know why. I would thank if someone could help me.
- mranderson11
