Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 8 years ago
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

Log in to vote
0
Answered by 8 years ago

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)
0
lol facepalm and on the second part I knew that I just chose to use the phrase character macabe55101 38 — 8y
0
c: OldPalHappy 1477 — 8y
Ad

Answer this question