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

LeaderBoard help? Code is: Workspace.LeaderBoard:7:attempt to index global 'Player' (a nil value)

Asked by 5 years ago

I am trying to create a leaderboard with the value of an existing variable called value but it isn't working. Pls help

Code is here:

Player.PlayerStats.Coins:GetPropertyChangedSignal("Value"):Connect(function() coins.Value = Player.PlayerStats.Coins.Value end)

1 answer

Log in to vote
0
Answered by 5 years ago

You need to refer what Player means. You can't just write "player" because it is not a property of game.

0
Thanks :D Chrisogbeide11 0 — 5y
Ad

Answer this question