game.Players.PlayerAdded:connect(function(char)
local leaderstats = Instance.new("Model")
leaderstats.Name = "Leaderstats"
leaderstats.Parent = char
local money = Instance.new("IntValue")
money.Name = "Money"
money.Value = 0
money.Parent = leaderstats
end)
✓ ANSWER ACCEPTED
I followed the leaderboard wiki guide but when I test the game it doesn't show up why?
1 answer
✓ Accepted answer
The name of the leaderstat should be leaderstats, not Leaderstats.
--// Also, remember that the player added event returns the player, not the character.
game.Players.PlayerAdded:connect(function(char)
local leaderstats = Instance.new("Model")
leaderstats.Name = "leaderstats"
leaderstats.Parent = char
local money = Instance.new("IntValue")
money.Name = "Money"
money.Value = 0
money.Parent = leaderstats
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
lol facepalm and on the second part I knew that I just chose to use the phrase character
c: