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
01game.Players.PlayerAdded:connect(function(char)
02    local leaderstats = Instance.new("Model")
03    leaderstats.Name = "Leaderstats"
04    leaderstats.Parent = char
05 
06    local money = Instance.new("IntValue")
07    money.Name = "Money"
08    money.Value = 0
09    money.Parent = leaderstats
10 
11end)

1 answer

Log in to vote
0
Answered by 8 years ago

The name of the leaderstat should be leaderstats, not Leaderstats.

01--// Also, remember that the player added event returns the player, not the character.
02game.Players.PlayerAdded:connect(function(char)
03    local leaderstats = Instance.new("Model")
04    leaderstats.Name = "leaderstats"
05    leaderstats.Parent = char
06 
07    local money = Instance.new("IntValue")
08    money.Name = "Money"
09    money.Value = 0
10    money.Parent = leaderstats
11 
12end)
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