Motor6D Not working with animation

  1. What do you want to achieve?
    I’m trying to create an equip animation for my pistol.

  2. What is the issue?
    When I try to make animations on the humanoid, the motor6D for the gun doesn’t work. In my animation, I used the motor6D to rotate the gun.

  3. What solutions have you tried so far?
    I am looking for solutions in the developer hub, but I don’t see anyone having the same problem. My theory is one of the inverse kinematics scripts I have is interfering with the animation (The inverse kinematics is for making the player’s character look up and down).

--Snippet of my code (this is on the server)

Tool.Equipped:Connect(function()
	local character = Tool.Parent
	local humanoid = character:FindFirstChildOfClass("Humanoid")
	params.FilterDescendantsInstances = {character}
	
	local RightHand: Part = character:WaitForChild("RightHand")
	local ToolAttach: Motor6D = RightHand:WaitForChild("ToolAttach")
	ToolAttach.Part1 = Handle
	
	idleTrack = humanoid:LoadAnimation(Animations.idle)
	idleTrack:AdjustSpeed(0)
	idleTrack:Play()
	
	attackDebounce = true

	task.wait(equipCd)	
	attackDebounce = false
end)

This is what the animation is supposed to look like:

This is what the animation looks like in game:


Can someone help me find a solution for this? Thank you!!!

  1. Did you add keyframes to the hands, marking them you don’t have to animate them just right click and click add keyframe thats it.
  2. Did you set the priority to action, if you didn’t movement anim is going to override part of the animation

Does it work when you don’t apply the default animate script?

I followed your instructions, and it didn’t seem to work

It does not work when I remove the default animate script