Fixing Infinite yield possible for custom character animation

Hello! I have this simple cube as a custom character. It’s just a humanoid jointed with the cube MeshPart

but I get this error message Infinite yield possible on 'Workspace.ANASTASIACATOONES.Animate:WaitForChild("Walk")'

The animation script is from a gnome code video

local character = script.Parent
local humanoid = character:WaitForChild("Humanoid")


local walkAnim = script:WaitForChild("Walk")
local walkAnimTrack = humanoid.Animator:LoadAnimation(walkAnim)

humanoid.Running:Connect(function(speed)
   if speed > 0 then
   	if not walkAnimTrack.IsPlaying then
   		walkAnimTrack:Play()
   	end
   else
   	if walkAnimTrack.IsPlaying then
   		walkAnimTrack:Stop()
   	end
   end
end)

so I am a bit bamboozled as to why the custom walk/run animation isnt playing. I did change the AnimationId to my animation as well

2 Likes

do you have an animation parented to the script

1 Like

yeah of course of course ! :))

1 Like

is the animation named “walk”??

1 Like

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