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)

3 comments
I did it but now its not giving me the halo
Is the value of stage bigger than 40 when you join the game? That script is checking that value Just when you joined. You can use while wait() do so that will be looping and checking if the value is bigger than 40
Or Changed function - Player.leaderstats.Stage.Changed:Connect(function()