For some reason I keep getting this error. I have tried checking to see if there are any typos but there are none. This is also on a normal script. I need help, thanks.
game.Players.PlayerAdded:Connect(function(Player) Player.CharacterAdded:Connect(function() local leaderstats = game:GetService("Players").leaderstats.Stage.Value if leaderstats >= 40 then local Halo = game.ServerStorage.RainbowHalo:Clone() Halo.Parent = Player.Character end end) end)
game.Players is like folder with players, so leaderstats isnt in that folder. You need to get Player. You Already have player from PlayerAdded function so you can use Player.leaderstats....