Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Infinite yeld possible on Right Shoulder. How to fix?

So when i open the game in studio, no error in server logs or output, but when i join the game, i see that theres an infinite yeld possible on "right shoulder" (which is my custom character). The only part of script using "right shoulder" was that part

local RightShoulder = Figure:WaitForChild("Right Arm")

But except that nothing else uses it and it doesnt tell me which line.

4 comments

0

Usually when I get something like that, it either means WaitForChild was stuck for a moment or something is missing causing WaitForChild to wait there forever. If your script still runs completely just ignore it.

0

Alright, well it does cause a delay problem with the animations and damage script (punches). So if theres anyway to fix the yeld it would help a lot

0

Hmm. Does your script do anything to the "Right Arm", like remove it or rename it? If not, it could probably be something else in the script that's causing it.

0

Is every part named correctly?

1 answer

Try

local RightShoulder = Figure:WaitForChild("Right Arm") end)

2 comments

0

Infinite yeild basically means something like nothing is stopping it, so what I just said might work.

0

Well your end) doesn't work it just underlines it red

This discussion is preserved as it was. New answers, comments, and votes are closed.