AdjustSpeed() not working

im using the default R15 dancing animation and trying to use AdjustSpeed(1.5) to speed the animation up but it isnt working
there are no errors

humanoid = script.Parent.Humanoid


humanoid:LoadAnimation(script.Animation):AdjustSpeed(1.5)
humanoid:LoadAnimation(script.Animation):Play()

1 Like

Can you show the script so people can see where the issue is coming from

1 Like
humanoid = script.Parent.Humanoid


humanoid:LoadAnimation(script.Animation):AdjustSpeed(1.5)
humanoid:LoadAnimation(script.Animation):Play()

1 Like
local animation = humanoid:LoadAnimation(script.Animation)
animation:AdjustSpeed(1.5) 
animation:Play()

this should work let me know if theres any errors

1 Like

no errors but it still didn’t speed it up

:LoadAnimation() from the humanoid class is deprecated and could have issues. Try loading the animation from the humanoid’s Animator instance and see if that fixes the issue.

1 Like

I believe you have to play the animation first then Use AdjustSpeed

1 Like

Oh, I see the issue.

When you use :LoadAnimation(), it returns an AnimationTrack which you can then play.
You are creating two different animation tracks. It’s not playing the same one that you adjusted the speed for.

Do this:

humanoid = script.Parent.Humanoid

local animationTrack = humanoid:LoadAnimation(script.Animation)
animationTrack:AdjustSpeed(1.5)
animationTrack:Play()
1 Like

it still wont speed up
its in a serverscript if that matters

1 Like

Animations that are played on a player’s character should always be played from the client, they automatically replicate to the server.

Put AdjustSpeed after Play, like so

local animation = humanoid:LoadAnimation(script.Animation)
animation:Play()
animation:AdjustSpeed(1.5)

I was having this issue in the past and this seemed to do the trick. Counterintuitive, but it worked for me.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.