How do i tween AdjustSpeed()?

Hello, does anyone know how to tween an animation speed?

local Humanoid = script.Parent:WaitForChild("Humanoid")
local Animation = Humanoid:LoadAnimation(script:WaitForChild("TrainMove"))



wait(2)
Animation:Play()
Animation:AdjustSpeed(1)
wait(7)
Animation:AdjustSpeed(0)

i want it to smoothly Slow down instead of instantly slowing down?

You’d wanna use a for loop. See below:

Animation:AdjustSpeed(1)
for i = 1, 70 do
    wait(.1)
    Animation:AdjustSpeed(1 - i / 70)
end
1 Like