How to get animation events from client played animation

I want to get the animation event signals on the server from animations that are played on clients. I want to do this in order to manage server-side stuff like hitboxes without needing any remoteevents that introduce possibly exploits. Is this possible?

depends on what you need this for. is this JUST an animation or does it modify gameplay (attacks)

either way theres vulnerbilities. no matter how much you hide the animation id exploiters can get the playing tracks and spam the animation and loop it with a fast speed causing it to rapidly attack. your best bet is just using remote events and using a server sided cooldown by adding players to a cooldown table until the time is over when its fired, if its fired during cooldown flag them for cheating. (make sure to use a localscript cooldown aswell so if they click during cooldown and it fires it doesnt think they are cheating)

This will be for important stuff like attacks

Yeah I thought that might just be the only way unfortunately, but that’s alright. The challenge is just finding the best way to do server side checks that will catch cheaters but not anyone else

Not completely sure if this would work, but replicate the animation on the server or on a different client. Then check if on the server or client if that actually hits the other player. Kinda as a double check.

I do think that you can’t play anims on the server anymore so if your map is small, playing it on another client might be the easiest.

Not sure if exploiters can manipulate the event to be triggered from another client though, so maybe if the game has ~10 players, randomize them when the anim is triggered, send a secret code, and then make sure it comes from THAT client with that secret code.

I’m not completely sure, I haven’t really been scripting functional animations. (Like a few that move you… but not really any that would do attacks)