Occasionally a player will join the game and the server console gets filled up with these errors. They typically end up complaining about a lot of really strange behavior during their play session. I have no clue what this is or what’s causing it.
The full error is “” to be a descendant of Game/Workspace (can’t remember which). I’ve been seeing this pop up while debugging Zombie Rush too, but have no idea what causes it as it seems to be completely random.
Some extra information pertaining to this, one of the guys on my development team experiences this problem on a regular basis. The worst symptom of this issue seems to be extreme network lag that ends up screwing with in-game functions. However, when this error doesn’t appear in the output they experience no symptoms.
In one of my personal projects I was having this issue and it turned out I was trying to access the character, but it was the old character – the one prior to the one they got on respawn that is now parented to nil. If you do character = game.Players.LocalPlayer.Character
, chances are you’re going to get the old character. You could try character = game.Players.LocalPlayer.CharacterAdded
, but unless this issue is happening 100% of the time when someone respawns, that’ll also cause issues because that means sometimes the new character exists when that script runs and sometimes it doesn’t. A 100% fix would be to do:
local player = game.Players.LocalPlayer
local character = ((character and character.Parent ~= nil and character) or player.CharacterAdded:wait()
Hm, lemme play around with this and see what happens. If this ends up being the cause, that makes the network lag symptom (or at least apparent symptom) make even less sense.