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)