is there any way to detect keyframes in moon animator or the roblox animator, so that you can add custom effects played by scripts and see them live without having to save and then run a script
i tried rig.Humanoid.Animator.AnimationPlayed:Connect(print) but this doesnt detect anything for either animator (in the preview)
edit: or maybe some way to fire a event or call a function from inside the animation preview
i want to make a cutscene where npc and the player walk around, but the cutscene also has to be synced with camera and other effects (custom subtitles), so having it all together in the animation preview makes it much easier and faster to make
its hard to use animations for walking around because you have to copy paste the walk animation constantly and its also based on relative offset
in moon animator you can add an item with animation events. Then double click on the event and “code begin” and “code end” can run code (not sure what the difference is)
If you want a convenient reference to an event/module you can use getfenv() in the first animation event
edit: a better way is to set _G at the start of your game in one script and then you can access it from any animation after
--in a localscript
_G.animUtil = {
doSomething = function() end
}
--in animation event
_G.doSomething()