Infinite Yield On Existing Part

When I go in game, I get this warning:

Causing the script not to work. Here is the code:

local b = script.Parent:WaitForChild(“Body”):WaitForChild(“Head”):WaitForChild(“Beam”)

image
parenting structure.

Is there a space after the name? I actually had this happen to me today.

nope…

i need more characters to send this simple message… so here. done

WaitForChild has two arguments, the string of the part you want it to wait for, and how long you want it to wait for

If you really want to get rid of the message, specify how long you want it to wait for

Keep in mind, it’ll return nil if it cant find it in time

1 Like

Found the fix, because there were multiple CPSS’s, apparently there were 2 without any body or head on it. I deleted those and it works now, thank you for your help.