Animations stop suddenly instead of smoothly stopping

I’m not sure why this is occurring, but the animation plays and then kind of freezes in place and stops very suddenly. I’m not sure if this is a glitch or something but it was working just a few days ago, now it’s doing this all the sudden.

heres my code

 local States = StatesMod:GetCharacterStates(Character)
 local Animations = Character:FindFirstChild("Animations")

 if Animations then

    local Humanoid = Character:FindFirstChild("Humanoid")
    local Animator = Humanoid:FindFirstChild("Animator")

    local M1Animations = Animations:FindFirstChild("M1s")
    local Combo = States.Combo.Value

    local DesiredAnim = M1Animations[Combo]
    local M1Anim = Animator:LoadAnimation(DesiredAnim):Play()
 end
1 Like

It would be helpful to see the animation as it is in the editor, but I think this is just Roblox’s animation system being normal. Once an animation is finished, it quickly resets.
You could try to get the animation length or use an event to mark when you’d like an animation to fade out and then use :Stop(.5) to smooth the motion of the animation resetting.

1 Like

you shouldn’t have to use :Stop(0.5) Roblox animations stop smoothly by themselves, it doing it more quickly than normal and also freezing the animations as well. Im really confused.

heres what i mean by the freezing, the 4th animation doesnt have a segment in the end where it pauses like it does in game, Heres the animation compared to in game.

fixed i realized it was playing the animation code multiple times at once.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.