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:
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)