Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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

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

1 comment

0

Thanks :D

This discussion is preserved as it was. New answers, comments, and votes are closed.