Changing speed of animations

I’m really confused on how to do this I tried using :AdjustSpeed(2) but it didn’t do anything

Attack1:AdjustSpeed(2)
Attack1:Play()

Try
Attack1:Play(0.2, 2, 0)
Let me know if this works.

1 Like

Didn’t work

image

Can I see the part of the script that the error is coming from?

if AnimTable[1] == 1 then
					local Attack1 = Player.Character.Humanoid:LoadAnimation(RepStorage.Animations.Katana.KatanaAttack1)
					Attack1(0.2, 2, 0)
					Attack1:Play()
					AnimTable[1] = 2
end

I know why. I said it wrong. It’s supposed to be Attack1:Play (0.2,2,0). You can remove the first Attack.

You did it wrong. The parameters have to go in when you call play.

like this?

Attack1:Play(0.2,2,0)

the animation doesn’t play now

Try Attack1:Play (0.2,2,0) then underneath put

wait(2)

Attack1:AdjustSpeed(2)
wait(Attack1.Length/2 - 0.01)

2 Likes

Can’t you just try to adjust the speed in the animation editor?

nvm i got it

Attack1:Play(0.2,2,2.5) --the 2.5 changes the speed of the animation

no because it doesn’t give a lot of flexibility

Were you able to get it to work?

yeah, thanks for the help. (30 characters)