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

How to manually make keyframes play backwards?

Asked by 3 years ago
Edited 3 years ago

I made a walking animation, but do not want to make the legs and arms again in reverse, any help?

Thank you!

-superfreddycool

1 answer

Log in to vote
1
Answered by 3 years ago
Edited 3 years ago

You can set the speed for an AnimationTrack by doing AnimationTrack:AdjustSpeed(). If the argument is negative the animation plays backwards and the opposite for positive values.

An example:

local AnimationTrack = humanoid:LoadAnimation(Animation)
AnimationTrack:AdjustSpeed(-1) -- in reverse at normal speed
AnimationTrack:Play()

API Reference for AnimationTracks.

0
@radiant_Light203 , alrighty, but where do we insert the script? I'm very new to Lua scripting. superfreddycool 4 — 3y
0
StarterCharacterScripts is where all scripts used on the player's character usually end up being put. The example I've given will NOT work on your player it is missing a few things. radiant_Light203 1166 — 3y
Ad

Answer this question