Object not a valid member of "Head"

Hi there, I’ve got this error that is annoying but not game breaking:

I have no idea why it would be doing this as I’ve parented it above and the script is inside the Character.

Script:

Thanks,

Try doing Character.Head:WaitForChild(“ArmorDisplay”), instead of Character.Head.ArmorDisplay

Character.Head:WaitForChild("ArmorDisplay") -- rest of the code

Tried that gave inf yield possible

1 Like

Is ArmorDisplay the actual name of the Object, maybe there’s a misspelling? Does it even exist in the character’s head?

1 Like

This doesn’t happen all the time it works most of the time so there isn’t an issue with the spelling itself its just not parenting to the head for some reason?

1 Like

So the ArmorDisplay does not go in the character’s head for some reason now? Share a screenshot of the character’s head in the Explorer tab

image

Like i said it works most of the time but for some it doesn’t parent to the head

1 Like

This is all done in one script, When players join the game its a 50/50 chance the ArmorDisplay parents to the head and works, the other it just doesn’t seem to parent hence the error so idek

Its on this thread

Line 5

1 Like

Does the problem only happen after your character respawns?

Yes or anytime they join since its script is located in StarterCharacterScripts

Is it a localscript or a serverscript?

Server its an edited version of the default “Health” script that is normally inside players char

Can you put a print statement above your db and reset your character, does it print the second time?

Yes, i think i found a fix tho i clone it then parent it on a CharacterAdded event in another server script

2 Likes