Infinite yield on multiple scripts

Hello,

I’m experiencing multiple instances of infinite yields, specifically in the use of :WaitForChild(). This has not been an issue until recently, and I can’t seem to find the cause. Among the scripts that are affected are some made by Roblox, such as the character animation script. This script hangs infinitely when attempting to find the Torso of the character. The end result is a sliding mannequin with no default Roblox animations.

The map is quite large and the studio is laggy, but this is also an issue when loading the game with Roblox player as well. Some of the scripts which hang up were created by me, but have not experienced this issue before. Below see a snippet of the output log.

1 Like

This belongs in #help-and-feedback:scripting-support, its putting an infinite yield because it can’t find the part your looking for in that specific time. Is your game in R15?

1 Like

Isn’t it just a warning? Shouldn’t cause errors in your game.

The game is in R6. I apologize if this is under the wrong sub-forum, I’ll try moving it if I can.

Yes, it’s a warning, but this causes multiple scripts to not function because they hang up infinitely waiting for an instance that should have already been loaded into the game.


https://gyazo.com/047775c856ff468aafb3f93165f8898c

Will that’s your error right there, try to fix it.

Are you sure your game is r6?

That script isn’t written by me. That should be the default animation loader from Roblox. The torso loads into the game - meaning I can see the torso when the game loads. But the script hangs up infinitely waiting for the Torso to load in, so none of the default Roblox animations (jumping, walking, or even idle) load.

And, yes, the game is in R6.

A torso should probably load before the default yield is over, that’s just going to hide the problem. Unless if something really weird is going on.

To my knowledge, adding a large timeout will just prevent the warning without solving the issue. The animations still won’t load in, because the script will be waiting for the Torso.

Does this happen when you die or happens all the time?

Actually, I believe someone on the Teamcreate may have tampered with the Game Settings since it’s been changed to R15 (sorry! I was almost 100% sure it was still in R6), so that fixes the issue with the animations not loading. I’m still having some issues with other scripts experiencing Infinite yields, but that may be caused by a separate issue.

Alright no problem, is there a part called Vehicle Seat in workspace? (If that infinite yield is still there).

Solved the second problem (someone was seriously playing around with the game’s settings). StreamingEnabled was turned on by someone which caused multiple regions of the map to not load.

Alright then. If it’s through a malicious intent you should probably find them, this is why I usually make people go to a seperate team create game if they want to work with me and I don’t know them.

That’s a good point. FWIW, I’m not the head developer for this project, so I’m only one additional developer among several others. I’m going to contact the others and ensure this issue is handled appropriately. I don’t suspect any malicious intent.