Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to manually make keyframes play backwards?

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

✓ Accepted answer

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.

2 comments

0

@radiant_Light203 , alrighty, but where do we insert the script? I'm very new to Lua scripting.

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.