GetMarkerReachedSignal() not firing?

Howdy, I’m fairly new to setting up anonymous functions to KeyFrames so I’m not sure if I’m doing something incorrectly, or if this is a ROBLOX issue. Here’s what the code-base looks like:

local anim = player.Character.Humanoid:LoadAnimation(anims['Table Flip'])

anim:GetMarkerReachedSignal("BeforeFlip"):Connect(function(paramString)
	print(paramString)
	-- Run code
end)

--// Function that runs the animation

I’ve excluded some of the code because I don’t think it’d help showing it.
Here’s a photo of what the animation looks like:

image

The animation runs fine, it’s just the code in the function listening for the keyframe is not running. If y’all have any ideas on why it’s not working please do let me know!

Thanks for reading!

1 Like

GetMarkerReachedSignal doesnt look for named keyframes
You need to make an animation marker at that keyframe:
https://gyazo.com/52a36e4a58287be5bc84e1de4c1cb5b6

3 Likes

You’re goated :pray:t2:, thanks man.

1 Like