Need help keeping animations synced to a script on the server side

I am trying to make a boss fight syncing specific events (particle effects, collision damage, etc.) tied to a keyframe on an animation. However, after making some code to work alongside an animation and testing, there’s a rather annoying amount of lag causing heavy desyncing between the running code and the animation. So far I have tried simply adjusting the delays, but the amount of lag is never consistent. When making past bosses, I didn’t struggle much with this issue though this boss relies on animations more than any of my other bosses.

A possible solution I am considering is using animation events, however from past experience animation events still seem to have some lag to them. Should I try using animation events, or is there a better solution?

1 Like