@jayr
Roblox Oct 16, 2026

What does 'infinite yield possible' mean in roblox studio output?

Script still works mostly but the output keeps warning infinite yield possible on a WaitForChild line. Should I worry about it or just add a timeout?
2

Leave A Reply

Log in to post an answer.

2 Answers

ratan Nov 23, 2026
jayr
You can give WaitForChild a timeout as a second argument, like WaitForChild("Thing", 5). Then it returns nil after 5 seconds instead of hanging, and you can handle that case. And if StreamingEnabled is on, a part that's far from the player might just not be on the client yet. In that case the name is fine, the part just hasn't loaded.
andreew Oct 21, 2026
jayr
It means a WaitForChild call has been waiting for more than 5 seconds and still hasn't found what it's looking for. It's a warning, not an error, and the script just keeps waiting forever. Usually the name is spelled wrong, the object is under a different parent than you think, or it only exists on the server and you're waiting from a client script. Check the exact path in the explorer while the game is running.