Hello, I am having trouble with a Server Script that I am doing, it is a Regular script and I keep getting an error like, "leaderstats is not a valid member of Player". It would be appreciated if you would be able to find the error, and by the way, do not recommend the Scripting Helper's discord.
game.Players.PlayerAdded:Connect(function(Plr) print(Plr.Name.. " has empty data!") print(Plr.Name.. " Has loaded in!") print(Plr.Name.. "'s balance is $"..Plr.leaderstats.Cash.Value) end)
game.Players.PlayerAdded:Connect(function(Plr) print(Plr.Name.. " has empty data!") print(Plr.Name.. " Has loaded in!") print(Plr.Name.. "'s balance is $"..Plr:WaitForChild("leaderstats"):WaitForChild("Cash").Value) end)