Animation Playback Speed

Hello!

Easy question! I have two animations, one is two seconds and the other is one second. Is there a way I can easily adjust “in script” the playback speed to be the same as each other? I want to make the two second animation one second through code.

I believe I can use one of these but I’m unaware of how to get the effect I’m looking for.

AnimationTrack:Play()

AnimationTrack:AdjustSpeed()

AnimationTrack:Play()
AnimationTrack:AdjustSpeed(2)

The animation must be played before using the AdjustSpeed method.

Once played, you can immediately call AdjustSpeed(#), where # is the multiplier. Setting # to 0.5 would half the speed, 2 would double it, etc.

4 Likes

See: