How to reverse an animation

is there a way to reverse an animation using script? or is there like a button in the animation editor to reverse

2 Likes

You can make an animation play in reverse by passing a negative number in AdjustSpeed.

Example:

local track = animator:LoadAnimation(animation)
track:Play()
track:AdjustSpeed(-1) -- Negative numbers make animations play in reverse

Hope this helped!

4 Likes

The above post should work well, or you could also do something like:

local AnimationTrack = HumanoidAnimator:LoadAnimation(Animation)
AnimationTrack:Play(0.100000001, 1, -1) 
--First Number Is fade time, the above is default 
--Second number is weight, the above is the default
--Third number is speed. As mentioned above, a Negative number Reverses the animation. 

Both achieve the same effect!

4 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.