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

Why does my leaderboard script show only one of the 4 values in game?

Asked by 8 years ago
01function PlayerEntered(newPlayer)
02local stats = Instance.new("IntValue")
03stats.Parent = newPlayer
04stats.Name = "leaderstats"
05 
06local coins = Instance.new("IntValue")
07coins.Parent = stats
08coins.Name = "Coins"
09coins.Value = 0
10 
11local diamonds = Instance.new("IntValue")
12diamonds.Parent = stats
13diamonds.Name = "Diamonds"
14diamonds.Value = 0
15 
View all 28 lines...

Could someone help me? In the actual game server when i test the leaderboard only one of the values has 0, the rest have no value, just the name, help please?

1 answer

Log in to vote
0
Answered by 8 years ago

I just tested it and it works in both studio and server. What exactly is the problem? It does show the value for me

Ad

Answer this question