Weird Animation Bug

In my game The Below, my guns have this weird issue, if you equip them, something if you unequip them and equip a different gun, it merges both of the idles or just doesn’t play the animation whatsoever. Even when you have nothing equipped it might play an idle animation.

I do (yes) use :LoadAnimation() and :GetPlayingAnimationTracks() on humanoids. I doubt this is the issue though, as many other devs use these same deprecated methods. Link to video showing issue

1 Like

Ik that :LoadAnimation still works on Humanoid but I’m not sure about :GetPlayingAnimationTracks, maybe that’s the issue? Also how do you use :GetPlayingAnimationTracks? Do you loop over it and stop the other gun animations?

(Also don’t use deprecated stuff; its just better to not imo)

1 Like

I put it in a for loop to stop all animations on the humanoid. Whats the alternative for :LoadAnimation() by the way?

Reference the Animator inside Humanoid

local animator = humanoid.Animator
animator:LoadAnimation()
animator:GetPlayingAnimationTracks()

So, is there any difference? Like performance-wise?

1 Like

No afaik but its just better to use things which were meant to be used that way

1 Like