What's the best way to deal with people auto clicking? I've tried checking how can they have hit someone by doing (previous_time - current_time) and the lower it is the faster there clicking. But it isn't working for serval reasons.
Perhaps you want (current time - previous time) instead. The solution you posted will always give you differences of less than zero.
using a max click limiter works but can be a bad idea if you have competitive players, you can expect up to 100cps you can try using rhythmic to catch it but normally autoclickers can disguise by adding/removing X amount of time to prevent discovery