[Help picture] https://ibb.co/KWypMXD
I am trying to put the value of Output says that Player isn't a valid member of PlayerStats.
This is the code:
game.Players.PlayerAdded:Connect(function(plr) local f = Instance.new("Folder", plr) f.Name = "leaderstats" local coins = Instance.new("IntValue", f) coins.Name = "Coins" coins.Value = game.Players.Player.PlayerStats.Coins.Value end)
Pls tell me where in the code is wrong and correct it

3 comments
R u sure the output is not the opposite? "PlayerStats isn't a valid member of Player"
Yah it should be like that
oh yh the output is the opposite