Is there any reason to not use AnimationEvents over task.wait?

So, I’m making a battlegrounds game, I know “The Strongest Battlegrounds” uses mostly AnimationEvents, but I just wanted to double check just in case.

well would you rather hardcode

animation:Play()
task.wait(3.5)
action()

and have to change the code for every single one?
or do

animation:Play()
animation:GetMarkerReachedSignal(signalName):Connect(action)

which saves you time in the long run… and a lot of testing.

I mean yeah, that’s why I’m asking if there’s any technical tradeoff for the simplicity

Use task.wait, animations events are unreliable in my experience. If you’re trying to align a block of code with a certain part of an animation/keyframe then use Moon Animator and toggle the “seconds” setting, which lets you see how long it would take for a certain keyframe to be reached

what if they’re not using a $30 plugin?

Well I haven’t used the default editor in a long time, but it looks like it has a seconds option. There are also “other” ways of obtaining moon animator if buying it is out of the question.

late here

i’m not experienced with this stuff at all but im pretty sure animation tracks are client sided and since exploiters can modify client, id say its better to rely on task.wait() from the server

repeat task.wait() until animTrack.TimePosition >= 1.5 --[[and animTrack.TimePosition < 1.6]]