Hey, so I’m attempting to create my own roblox character. I’ve been following this tutorial How To Create And Animate A Custom Character In Roblox Studio - YouTube . I’m getting this error even though there’s a RightShoulder. Also are there any good tutorials you would recommend? Thanks!
19:41:06.178 - Infinite yield possible on ‘Workspace.Play_MazeOfHeck.Torso:WaitForChild(“RightShoulder”)’
Animate Script (In StarterCharacterScripts)
local Figure = script.Parent
local Torso = Figure:WaitForChild("Torso")
local RightShoulder = Torso:WaitForChild("RightShoulder")
local RightHand = RightShoulder:WaitForChild("RightHand",1)
local RightThigh = Torso:WaitForChild("RightThigh",1)
local RightFoot = RightThigh:WaitForChild("RightFoot",1)
local LeftShoulder = Torso:WaitForChild("LeftShoulder",1)
local LeftHand = LeftShoulder:WaitForChild("LeftHand",1)
local LeftThigh = Torso:WaitForChild("LeftThigh",1)
local LeftFoot = LeftThigh:WaitForChild("LeftFoot",1)
local Humanoid = Figure:WaitForChild("Humanoid")
local pose = "Standing"
local currentAnim = ""
local currentAnimInstance = nil
local currentAnimTrack = nil
local currentAnimKeyframeHandler = nil
local currentAnimSpeed = 1.0
local animTable = {}
local animNames = {
You are attempting to look for a child which doesn’t exist. When you use WaitForChild(), you’re searching for a child that is named what is in the brackets.
In your script, you are using this code: Workspace.Play_MazeOfHeck.Torso:WaitForChild(“RightShoulder”).
Change the name of the highlighted Motor6D in your previous picture to “RightShoulder” and see if that fixes it.
EDIT: To add on, any other pieces of code looking for children in the Torso are going to error because they’re all named Motor6D. You need to make sure all of the children are named correctly.
20:09:47.411 - Stack Begin
[20:09:47.412 - Script 'CoreGui.RobloxGui.CoreScripts/AvatarContextMenu', Line 274 - function shouldIgnoreLocalCharacter](rbxopenscript://www.dummy.com/dummy?scriptGuid=%7BEA11255C-7BF4-482F-98A0-BA8859D258BE%7D&gst=2#274)
[20:09:47.414 - Script 'CoreGui.RobloxGui.CoreScripts/AvatarContextMenu', Line 288 - function clickedOnPoint](rbxopenscript://www.dummy.com/dummy?scriptGuid=%7BEA11255C-7BF4-482F-98A0-BA8859D258BE%7D&gst=2#288)
[20:09:47.416 - Script 'CoreGui.RobloxGui.CoreScripts/AvatarContextMenu', Line 318 - function OnUserInput](rbxopenscript://www.dummy.com/dummy?scriptGuid=%7BEA11255C-7BF4-482F-98A0-BA8859D258BE%7D&gst=2#318)
[20:09:47.417 - Script 'CoreGui.RobloxGui.CoreScripts/AvatarContextMenu', Line 355 - function functionProcessInput](rbxopenscript://www.dummy.com/dummy?scriptGuid=%7BEA11255C-7BF4-482F-98A0-BA8859D258BE%7D&gst=2#355)
20:09:47.418 - Stack End