Help with animation

Hello, I’m trying to make a spear hold animation, but it just looks like this:

In Studio:

The script:

wait(.5)
character = script.Parent.Player.Value.Character or script.Parent.Player.Value.CharacterAdded:Wait()
Tool = script.Parent
MotorCheck = script.MotorCheck
Motor6D = script.Motor6D
animation = nil
debounce = true


Tool.Equipped:Connect(function()
	Motor6D.Part0 = character:WaitForChild("Right Arm")
	Motor6D.Part1 = character:WaitForChild("Spear"):WaitForChild("Bat")
	Motor6D.C0 = CFrame.new(-0.0220184326, -0.686289787, -0.303398132, 1, 7.15506587e-07, 0, 0, 0, 0.999999881, 7.15506587e-07, -1, 0)
	Motor6D.C1 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1 )



	if MotorCheck == true then
		Motor6D.Part0 = character:WaitForChild("Right Arm")
		Motor6D.Part1 = Tool:WaitForChild("Bat")
		Motor6D.C0 = CFrame.new(-0.0347442627, -0.685749054, -0.799783707, 0, 7.15506587e-07, 1, -0.999999881, 0, 0, 0, -1, 7.15506587e-07)
		Motor6D.C1 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1 )
	end

	animation = character.Humanoid:LoadAnimation(script.Animation)
	animation:Play()

	RightArmGrip = character["Right Arm"]:WaitForChild("RightGrip")
	wait()
	if RightArmGrip then
		RightArmGrip:Destroy()
	end
	

	MotorCheck = true
end)

Tool.Activated:Connect(function()
	if debounce then
		debounce = false
		Tool.CurrentlyActivated.Value = true
		local hit = character.Humanoid:LoadAnimation(script:WaitForChild("Hit"))
		hit:Play()
		Tool.Bat.Sound:Play()
		coroutine.resume(coroutine.create(function()
			wait(1)
			Tool.CurrentlyActivated.Value = false
			wait(2)
			debounce = true
		end))
	end
end)



Tool.Unequipped:Connect(function()
	Motor6D.Part1 = nil
	Motor6D.Part0 = nil
	
	if animation then
		animation:Stop()
	end
end)


Thanks, there are no errors or anything.

Tool:
image

Thank you for help! This is a big issue, since it’s not the first time. Thanks again.

The last time this happened I changed the c0 property and that fixed it. Didn’t work this time though.

1 Like

I don’t know if this will help, but with the tool grip editor plugin, you can manually control the tool grip without a script. Here is the plugin by clonetrooper: Tool Grip Editor - Roblox. Though it costs 5 robux, I am very sure it will fix your issue. You can look up how to use it and if it will work for your problem on youtube. Just edit the tool grip and play your animation.