Custom rig not playing animation

I’m trying to create a custom rig and have a tail that plays a stabbing animation on click. However, the system is printing that the animation is playing and I made it print when the tool is activated, but despite this, the animation is not playing.

if input.UserInputType == Enum.UserInputType.MouseButton1 and toolequipped == true then
		print("Stab!")
		local stabanim = character.HirukoTail.AnimationController:LoadAnimation(script.Parent.StabAnim)
		stabanim:Play()
		print(stabanim.IsPlaying)
	end

image

My rig is welded and rigged properly, and the animation plays just fine in the animation editor


image

I’ve tried switching to a Humanoid instead of an animation controller and rerigging and redoing the welds multiple times, however I can’t seem to get it to play the animation

1 Like

Instead of using AnimationController, try using the Animator underneath Humanoid.

What is the animation priority that you are setting? Is this animation looped or set to play only once? Also, might be worth confirming that you have the correct animation ID inside your Animation object.

I just tried switching to the animator underneath Humanoid. It had the same error saying that it’s playing but not playing.

It’s an action and it’s set to playing only once, and I’ve confirmed that the animation ID is correct

Maybe instead of .HirukoTail, you could try :FindFirstChild("HirukoTail").codegoeshere?

Just tried it, same result

character:FindFirstChild("HirukoTail").AnimationController:LoadAnimation(script.Parent.StabAnim)