Custom Rig Animation not playing properly with Humanoid?

Animation Using AnimationController:
Video

Animation Using Humanoid:
Video

Note: Animations were loaded using an Animator Parented to those Objects.

I want to know why this happens and how to fix it, because I need a humanoid to make the NPC function properly.

The problem is that the Head, which is welded using a Motor6D with the RootPart, is not moving when the NPC has a Humanoid. But when I simply change the name of the RootPart from “HumanoidRootPart” to anything else, meaning that the Humanoid won’t consider it as a root, then the animation also plays normally, but of course, the rig won’t be able to stand up or do anything because the Humanoid is without a Root.

TLDR: If NPC has a Humanoid, then any part Connected Directly to the Root won’t be animated.

1 Like

Try loading the animation with the humanoid (humanoid:LoadAnimation()) instead of with the animator

Ensure that the parts are named correctly as per the Motor6D, and ensure that no other parts are anchored except the root

I tried this, but nothing changed.

I did check this also, and the animation is still bugged

1 Like

This is a proxy function and just invote animator:LoadAnimation() internally

In a R15 rig, I believe that the lower torso in some animation packs and emotes does animate and the problem is somewhere else.
Can you share the code that is responsible for loading and playing the animation along with the structure of limbs, how are all the limbs connected to the HumanoidRootPart via which other limbs, like a LeftHand is connected to LeftLowerArm and that is connected to LeftUpper Arm and so on.

function updateState(newState)
	if currentState == newState then return end
	stopAllAnims()
	currentState = newState
	
	if currentState == "Idle" then IdleAnim:Play()
	elseif currentState == "Run" then RunAnim:Play()
	elseif currentState == "Walk" then WalkAnim:Play()
	elseif currentState == "Attack" then AttackAnim:Play() AttackAnim.Ended:Wait() updateState("Idle") end
end

I even tried deleting all the other parts and just keeping the head to see if it would move and it didn’t, so it is something broken with how the Head is Connected to the HRP.