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:
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!