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

I followed the leaderboard wiki guide but when I test the game it doesn't show up why?

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)

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)

2 comments

0

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

0

c:

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