Why is there no leader board appearing in studio and in server?[EDIT]
Asked by
8 years ago Edited 8 years ago
So, I'm currently learning about Leader boards. I've read so far the whole wiki page, but now that I did what their script says, nothing appears. Here's the script:
01 | game.Players.PlayerAdded:connect( function (player) |
02 | local leaderstats = Instance.new( "Model" ) |
03 | leaderstats.Name = "Points" |
04 | leaderstats.Parent = player |
06 | local coin = Instance.new( "IntValue" ) |
08 | coin.Name = "Coins Collected" |
09 | coin.Parent = leaderstats |
Any ideas as to why nothing is appearing? All help is appreciated!
[EDIT PART]
So I've noticed that ROBLOX's script work's fine:
01 | game.Players.PlayerAdded:connect( function (player) |
02 | local leaderstats = Instance.new( "Model" ) |
03 | leaderstats.Name = "leaderstats" |
04 | leaderstats.Parent = player |
06 | local money = Instance.new( "IntValue" ) |
09 | money.Parent = leaderstats |
What's the difference between my script, and theirs?