Adjusting animation speed when character is moving

[ Issue Was Not Solved, Post Edited.]

Dont do anims.speed just do if speed > 0 then or if speed < 0 then

[ Issue Was Not Solved, Post Edited.]

Then do

humanoid.Running:connect(function(speed)
    if speed > 0 then
        anim:AdjustSpeed(1)
    else
        anim:AdjustSpeed(0)
    end
end)

[ Issue Was Not Solved, Post Edited.]

It adjusts the speed so it stops

oh and I made a mistake do this

humanoid.Running:connect(function(speed)
    if speed > 0 then
        anim:AdjustSpeed(1)
    elseif speed < 0 then
        anim:AdjustSpeed(0)
    end
end)

[ Issue Was Not Solved, Post Edited.]