WaitForChild waiting indefinitely for no apparent reason

I have a camera script that needs the humanoidrootpart of a payer, my problem is that when the player dies it waits indefinitely for the character’s humanoidrootpart despite it being there already

image
The humanoidrootpart is already there though

BUG! your not the first person today to say there is a problem with WaitForChild().

2 Likes

It’s because the character instance is removed and thus, it also removes the humanoid root part. Maybe use FindFirstChild

1 Like

There is a bug with :WaitForChild(), I have just tried using it and the same error occurs Infinite yield possible on 'ReplicatedStorage:WaitForChild("test")

1 Like

Is that bug new? Because also it is my first time in this bug.

1 Like

Yes. It has only just literally just started to happen.

1 Like

Had this issue again, looked it up and funnily enough found my own post.