Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why does my animation stop randomly?

Asked by 8 years ago

I have a loop of animations playing in a NPC with an animation controller, and it plays perfectly fine. Unless you get next to another player, that is. They only stop playing for me too, which is even more annoying. Filtering enabled is not on, so I'm not really sure why it'd do that..

while wait() do
        if attacking == true then
            if combo == 0 then
                combo = 1
                local animTrack = stand.AnimationController:LoadAnimation(punch1)
                animTrack:Play()
                wait(0.2)
            elseif combo == 1 then
                combo = 2
                local animTrack = stand.AnimationController:LoadAnimation(punch2)
                animTrack:Play()
                wait(0.2)
            elseif combo == 2 then
                combo = 0
                local animTrack = stand.AnimationController:LoadAnimation(punch3)
                animTrack:Play()
                wait(0.4)
            end
        end
    end
0
If I understood you correctly, you may have not done the animations good, Check how many keyframes you have and all that buoyantair 123 — 8y

Answer this question