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

Animation won't stop when the player isn't moving?

Asked by 4 years ago

I'm trying to get an animation to not play when the player is standing still, but I can't seem to get it to work.

spawn(function()
    local Event = Human.Running:Connect(function(speed)
        if speed < 0 then
            RunningAnimation:Stop()
        elseif speed > 0 and not RunningAnimation.IsPlaying and Running then
            RunningAnimation:Play()
            print(speed)
        end
    end)
end)
0
Full script please User#29320 0 — 4y
0
..Why? CaptainAlien132 225 — 4y

Answer this question