Animation Event Problem

Hello! For some reason, when I try to use the GetMarkerReachedEvent() function, it doesn’t work even though I have another working alongside it that works fine.

My code:

if Action == "Unequipped" then
		local Sword = Character:FindFirstChild("Katana")
		local unequipAnim
		unequipAnim = Hum.Animator:LoadAnimation(game.ReplicatedStorage.Sheathe)
		unequipAnim:Play()
		
		unequipAnim:GetMarkerReachedSignal("Alter"):Connect(function()
			print("found")
			Sword.PrimaryPart.Orientation = Vector3.new(0,90,0)
		end)
		
		unequipAnim:GetMarkerReachedSignal("Teleport"):Connect(function()
			print("reached")
			if Sword then
				local Weld = Sword:FindFirstChild("HandWeld")
				if Weld then
					Weld:Destroy()
					local SideWeld = Instance.new("ManualWeld", Sword)
					SideWeld.Name = "SideWeld"
					local Case = Character:FindFirstChild("Case")
					SideWeld.Part0 = Sword.PrimaryPart
					SideWeld.Part1 = Case.Case.Base
					SideWeld.C0 = CFrame.new(2.865,0,.18)
					Event:FireClient(Player)
				end
			end
		end)
	end

The output prints “reached” but doesn’t print “found” What did I do wrong?

What errors appear in console? If any.

No errors at all. Just ran it.

You need a KeyframeMarker instance named “Alter”.

It works for Teleport because there’s a default KeyframeMarker for teleport.

It looks like a :GetMarkerReachedSignal("Alter") does not work for you Sadly, you should use this .GetMarkerReachedSignal(unequipAnim, "Alter") This should Work!