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

Old animation plays until you move?

Asked by 3 years ago

Ok so, this doesn't really fit here I know, but this issue has been following me every time I try to change animations or play animations.

What I'm talking about

This is my animation toolbox script (the thing that changes between flying and idle)

    atb = game:GetService("RunService").Heartbeat:Connect(function()
        if flying then
            if humanoid.MoveDirection.Magnitude > 0 then
                if f_AnimToolbox==false then
                    iloaded:Stop(0.2)
                    floaded:Play(0.2)
                    f_AnimToolbox = true
                    i_AnimToolbox = false
                end
            else
                if i_AnimToolbox==false then
                    floaded:Stop(0.2)
                    iloaded:Play(0.2)
                    f_AnimToolbox = false
                    i_AnimToolbox = true
                end
            end
        end
    end)

I don't know anything that could cause the issue.

Answer this question