Animation Broken

I made an idle animation, that runs when the tool is equipped, and it all works fine, however the bat isn’t properly animated, and is just kind of straight there.
Image is attached:

image

Animation is attached here:

https://gyazo.com/8396edaa9298778bb44cfd40a70f9a42

And last of all, here’s the animation script:

local tool = script.Parent
local anim = Instance.new("Animation")

anim.Name = "IdleAnim"
anim.AnimationId = "rbxassetid://10662611565" -- Idle animaton ID here

local track

tool.Equipped:Connect(function()
	track = script.Parent.Parent.Humanoid:LoadAnimation(anim)
	track.Priority = Enum.AnimationPriority.Movement
	track.Looped = true
	track:Play()
end)

tool.Unequipped:Connect(function()
	if track then
		track:Stop()
	end
end)
2 Likes

The animation is fine, what the problem is that the tool isn’t aligned properly with the hand, you can fix this easily by installing this plugin.

1 Like

Well that is possible, but sometimes when you create an animation like this the positioning can get weird. I’m not exactly sure as to why it happens, but it happens to me sometimes.

(PS you are probably correct :slight_smile: )

Ah, Thanks, I’ll try that out later, and get back to you.