Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

What is the deal with Infinite Yield with WaitForChild()?

Asked by 7 years ago

WaitForChild is a good function to use, but it sometimes gives this very discouraging error, Infinite Yield. Now I go in to test the game and it says Infinite Yield possible on whatever. What is causing this? What is the solution to fixing this?

2 answers

Log in to vote
0
Answered by
Griffi0n 315 Moderation Voter
7 years ago
Edited 7 years ago

It's because the child doesn't exist. When it means "Infinite Yield" it means that the script could stall on the line forever unless the child shows up at some point

Ad
Log in to vote
0
Answered by 7 years ago

That is not an error it is a warning. I get it all the time. It will not effect the script unless that child never shows up on the server.

Answer this question