Animation not moving player

So I have this code which plays a animation when the player double jumps

local char = plr.Character
local hum = char:WaitForChild("Humanoid")
local animation = hum:LoadAnimation(char.PlayAnimation.DoubleJump)
animation.Looped = false
animation:Play()

but when the player double jumps, it plays the animation but the animation is meant to move the player forward but it always makes the player return to thier original position, does anyone know how to fix this?

2 Likes

Animations only alter the CFrame values of every part in the character’s rig except for the root part. The root part is what actually makes the character move around; the animations only serve to make it look natural. You’ll have to manually implement the code to make the player move forward during a double jump.

But how would I script that?
30 characters

I would personally use something along the lines of the root part’s velocity or to use one of the body movers to accomplish that.