Cannot Find Source of Infinite Yield Possible on WaitForChild HumanoidRootPart

As stated in the title, I’m whenever I reset in my game, there must be some kind of RunService event that is giving me this warning, but I cannot find the source.

Because of this, I don’t know how to resolve this issue since I cannot find where it originates from.

This isn’t just a studio error, it is also apparent in the Roblox Game Cilent.

If anyone has an idea or solution to this I’d appreciate it. Thanks.

Using find all feature, locate where is it:
image
this will show you where are all the scripts that has HumanoidRootPart

1 Like

image

Thanks! I finally found it. I was wondering though:

Why didn’t it show me the source of the warning to begin with?

This line of code was in a RunService.Heartbeat event on the client. Any idea as to why it would error like this? Is it the event that I used?

If you run the loop instantly when player joins, the parts of the character are not immediately being made, so your loop looks for the RootPart inside the character, when it doesn’t exist yet (this is also if the character was actually defined as the player’s character)

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.