How to use animation events in moon animator

Ello, I want to know how to use animation events in moon same as in built in animator? I created this animation with event:


but when I try to use GetMarkerReachedSignal on this animations it just doesn’t run without any errors neither warnings. Here is my code:
Anim:GetMarkerReachedSignal("Throw Projectile"):Connect(function() print("ello") end)
the animation plays correctly but it doesn’t print anything. Idk if this is my animation problem or my code is wrong : \

3 Likes

You could try .KeyframeReached, this returns a string from the name you provided:

Anim.KeyframeReached:Connect(function(keyframe)
if keyframe == "Throw Projectile" then
print("ello")
end
end)
1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.