Why doesn't the animation play?

So I’m making a dash system and heres how I store the animations:

local DashAnim = {
	Forward = Humanoid.Animator:LoadAnimation(script.DashForward);
	Backward = Humanoid.Animator:LoadAnimation(script.DashBack);
	Left = Humanoid.Animator:LoadAnimation(script.DashLeft);
	Right = Humanoid.Animator:LoadAnimation(script.DashRight)
};

Then I do this:

if direction == 'W' then
		DashAnim.Forward:Play();
	elseif direction == 'S' then
		DashAnim.Backward:Play();
	elseif direction == 'A' then
		DashAnim.Left:Play();
	elseif direction == 'D' then
		DashAnim.Right:Play();
	end

But it just doesnt play, it’s in a local script in StarterPlayer - StarterPlayerScripts, no errors, I’m quite confused.
(It does the whole dash btw but just doesn’t play any animations)

Oh nevermind it was an issue with this lol

if direction == 'W' then
		DashAnim.Forward:Play();
	elseif direction == 'S' then
		DashAnim.Backward:Play();
	elseif direction == 'A' then
		DashAnim.Left:Play();
	elseif direction == 'D' then
		DashAnim.Right:Play();
	end

Add solution to yourself. dsadadasdadsad