How do I fix this animation glitch?

So im making a troll admin command for my game and I used channels and it kinda starts flying in game.
(In the animation editor its all fine)

In game:

In animator: (also I didnt just press play but I just scroll through the animation)

Here is my playing anim script:

local anim ='Animation')
anim.AnimationId = 'rbxassetid://17787450889'

local track = script.Parent.Humanoid:LoadAnimation(anim)
track.Priority = Enum.AnimationPriority.Action4

1 Like

I fixed the glitch by adding more keyframes in the animation (i went into the animation editor and then right clicked and pressed “add keyframe here” and just filled the whole animation with keyframes.)