AdjustSpeed not working?

I have a script where I’m playing an animation. I want the animation to be slowed down to half speed, and I’m setting the speed to .5, and yet it doesn’t change anything.

Code:

local s2anim = hum:LoadAnimation(s1)
s2anim:AdjustSpeed(.5)
CurrentAnimation = s2anim
s2anim:Play()

https://developer.roblox.com/en-us/api-reference/property/AnimationTrack/Speed

Is this property of the AnimationTrack instance being correctly changed?
Try printing its value, like this.

local s2anim = hum:LoadAnimation(s1)
s2anim:AdjustSpeed(.5)
print(s2Anim.Speed)
s2anim:Play()

You have to change the speed after you play the animation, or alternatively you can pass the speed to animationTrack:Play()

local s2anim = hum:LoadAnimation(s1)
CurrentAnimation = s2anim
s2anim:Play(nil, nil, 0.5)
2 Likes