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

How can i set the duration of animation?

Asked by 4 years ago

For example, I have a hit animation with a duration of 2 seconds. But hit duration should be based on attack speed, so how can i speed up or slow down the animation time?

1 answer

Log in to vote
0
Answered by
notfenv 171
4 years ago

Use the adjustspeed function on the loaded animation (Humanoid or AnimationController then do :LoadAnimation(then your animation). Then, you can Adjust it. local Anim = Humanoid:LoadAnimation(AttackAnim) local Speed = 1.5 Anim:AdjustSpeed(Speed) 1 is the default.

0
Thank you, probably that is exactly what i was looking for! Gulgazar 65 — 4y
Ad

Answer this question