i want to make it such that when the player stops moving, the animation doesn’t entirely stop but instead “reverse” back to it’s original state
i tried using timeposition but i don’t think what it’s intended for
what i’m trying to achieve:
what i achieved so far:
and this is the code:
if moveDir.Magnitude > .5 and isOnGround() then
if not anim.run.IsPlaying then
anim.run:Play(1)
end
anim.run:AdjustSpeed(math.clamp(linearVeloMag/maxSpeed, 0, 1))
else
if anim.run.IsPlaying then
anim.run:Stop(.7, 1, .5)
end
if not anim.idle.IsPlaying then
anim.idle:Play(.5, 1, .5)
end
end
please help :,