Heres the script.
game.Players.Playeradded:Connect(function(Player)
local leaderstats = Instance.new(“Folder”, Player)
leaderstats.name = “leaderstats”
local Cash = Instance.new("NumberValue", leaderstats)
Cash.name = "Cash"
Cash.Value = 0
end)
And the error.
09:13:22.794 Playeradded is not a valid member of Players “Players” - Server - leaderstats:1
I am watching a video. But it works for them… Help me.
1 Like
zaydoudou
(Codoudou)
#2
Replace it with game.Players.PlayerAdded:Connect(function(Player)
Fusionet
(Fusionet)
#3
It should be
game.Players.PlayersAdded:Connect(function(Player)
Capitalization matters
^^^ Both helped marking one as a solucion now. WIsh i could mark both. @zaydoudou @Fusionet Thank you!
1 Like
zaydoudou
(Codoudou)
#5
You can mark the first solution as a solution
I did. Thank you and @Fusionet for the help.
New error. WHat the heck. PlayersAdded is not a valid member of Players “Players” - Server - leaderstats:1
Fixed. Relised my mistake,
Am i bad luck? @zaydoudou
Error again. name is not a valid member of Folder “Players.JonathonBows.Folder” - Server - leaderstats:3
zaydoudou
(Codoudou)
#8
Its leaderstats.Name = "leaderstats"
Its Cash.Name = "Cash"
Again, capitalization matters.
Im getting dumb. But lets get smart!