Animation Event not firing?

The DashLeft event I set at the end of the animation won’t trigger, I even tried changing the animation loading methods but nothing helped.

Animations = {
	["DashRight"] = 'rbxassetid://16032747521';
	["DashLeft"] = 'rbxassetid://16032746466';
	["DashFront"] = 'rbxassetid://15997962463';
	["DashBack"] = 'rbxassetid://16013638005';
}

for i,v in pairs(Animations) do
	local Anim = Instance.new("Animation")
	Anim.AnimationId = v
	Anim = hum:LoadAnimation(Anim)
	Animations[i] = Anim
end

config = {
	SideSpeed = 50,
	BackSpeed = 50,
	FrontSpeed = 50,
	SideTime = .1,
	BackTime = .2,
	FrontTime = .3,
	FrontCD = 2.5,
	SideCD = 2,
	BackCD = 3.5,
	IFrames = .3
}

local nodash
local dir
local dec
local Front
local Side
local Frontdb = false
local Sidedb = false
local Backdb = false
local running = false
local dashing = script.Parent.Dashing

function SideDash(dir)
	if Sidedb == false then Sidedb = true
		
		dashing.Value = true
		
		if dir == "Left" then
			
			nodash = false
			
			Side = -1
			dec = 0
			
			Animations.DashLeft:Play()

			local DashVelocity = Instance.new("BodyVelocity")
			DashVelocity.MaxForce = Vector3.new(1e5,0,1e5)
			DashVelocity.P = 9e9
			DashVelocity.Parent = humrp

			delay(config.SideTime, function()
				dec = .1
			end)
			
			repeat task.wait()
				DashVelocity.Velocity = humrp.CFrame.LookVector * (0 * config.SideSpeed) + humrp.CFrame.RightVector * (Side * config.SideSpeed)
			until nodash == true
			
			Animations.DashLeft:GetMarkerReachedSignal("Ended"):Connect(function()
				print("nodash")
				nodash = true
				repeat task.wait()
					DashVelocity.Velocity = humrp.CFrame.LookVector * (0 * config.SideSpeed) + humrp.CFrame.RightVector * (Side * config.SideSpeed)
					Side += dec
				until Side >= 0
			end)

			DashVelocity:Destroy()
			dashing.Value = false

			delay(config.SideCD, function()
				Sidedb = false
			end)

Animation.DashLeft:GetMarkerReachedSignal(“Ended”):Connect(function()