I’m trying to create tools that are both secure and fast paced, at first I’ve tried having a module that handles the combo, the idea being once it detects a hit it calls a remote event and the server checks if it’s possible, deals damage etc
the issue with this is, there’s nothing stopping the client from just running the final stun animation over and over w/ the required information as I’m unsure how I’d check which part of the combo the client is on.
The idea I’m currently at is by having the client fire a remote to the server effectively requesting an attack - " I want to attack with my fist " the server then does a few checks, do they have a tool equipped? Are they stunned? then does the combo calculations, damage, stun etc on the server then sending the client an animation ID and any other information related to the attack client side for them to run.
The question is how bad would this lag the server? My main reason for doing this is security over performance which is a sacrifice I’m willing to make if the performance for normal users is relatively smooth.
Are there any alternatives to this that are both secure yet fast on the client? Examples / Explanations are appreciated!!