Issue with playing multiple animations

This looks like to be a very weird animation weight bug that I can’t get to solve it or I just don’t know how to configure weightings right.

Roblox just mess up all the animations priority / weights when an animation is played on top of another one, and it’s weirdly only happening on some animations.

For example: This shotgun right here has 3 animations played: Fire, Reload start and Reload loop. When the reload start animation is being played and I want to fire my gun to play the fire animation, the fire animation does not get played. I have tried using the weight and fading time arguments on Animator:Play() or AnimationTrack:AdjustWeight() but it changes nothing.

However, this does not appear to be happening for the other animation, which uses the exact same code and framework.

For this revolver, there is a charging animation that moves the weapon parts before the firing animation. The first shot looks fine and works properly. However if it’s being fired frequently, the fire animation will appear to be constrained by something. Comparing the first shot and the second and third shot, you can see how the firing recoil is way weaker than the first one, and how the magazine also spin slower (the magazine spin animation is only supposed to be played on the charge animation but not firing)

All animations played above are set to the higher “Action” priority and they are animated in Blender, what is causing this to happen and is there any fixes for this? My goal is to have no transactions between these animations, which means when one animation plays on top of another one, it INSTANTLY plays it, with no fading.

1 Like

To play an animation without the initial fading just call the Play method entering 0 as argument, just like this: :Play(0). In this case, we are setting the fading time to 0 so there will not be any fading and this animation will instantly play. Anyway if you don’t want to have a totally 0 fading time, you just can change it a bit.
I think this will also fix the revolver problem, where the animation seems to get weaker, just by playing the fire animation with 0 fading time.
Hope it will help.

2 Likes