I’m making a combat game, which uses animation markers to do hitboxing and other things. A main issue I have is I use a module script to do the animating.
For example lets say I wanna do an M1
-- check, if, blah
VFX:FireClient(Player, "ClientVFX", "Animate", Animation, Player.Character, "Play")
But I still need the track because I wanna use a getmarkerreached signal to handle the hitboxing.
What would be the optimal way of going about this. Or if I should simply just play it on the server.
Edit: For any future people having this issue, How I went about it was.
Server:
I allowed the server to handle major things like…
- Playing the track,
- Getting the marker.
The player will NOT see this animation, It is just a serverside prediction. If it’s delayed a bit idk what to say tbh It works perfectly for me.
Client:
The client simply handles minor things like,
- The playing of a duplicate animation (For responsiveness).
If you find an alternative, better way of going about this that fits your tastes. Feel free, I’m just here to get your mind working.