Infinite yield possible

image

Anyone got an idea how i can fix this or what it means, i have absolutely no clue.

You should always search for the answer before making a post, you’ll find higher quality stuff than what I can regurgitate. There are hundreds of posts about this.
That said, it means that Right Shoulder doesn’t currently exist and you didn’t specify a timeout to WaitForChild.

You are looking for “Right Shoulder” inside “Torso”? And this means that “Right Shoulder” doesn’t exist, yet.

I’m not sure what your script is trying to accomplish, but I had no issue with infinite yield when I tried this code. Sometimes if you try WaitForChild on an Instance that hasn’t been created before the code runs, it will warn infinite yield in the output.

This code worked for me:

game.Players.PlayerAdded:Connect(function(plr)
	if game.Workspace:WaitForChild(plr.Name):WaitForChild("Torso"):WaitForChild("Right Shoulder") then
		print(plr.Name.."'s right shoulder found!")
	end
end)

So the thing is i have a custom character which has these parts:

image

There is indeed no right shoulder, but i have no script looking for right shoulder? or is there one by default?

If it isn’t one of your scripts, it’s just one of the pre-made scripts from roblox, no need to worry about them.

It’s the Animate script. I have a fix for you. Place a blank LocalScript named “Animate” into “StarterCharacterScripts”.

2 Likes

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