Yo so I spent 13 hours creating an anti-cheat against exploiters who increase their speed or fly really fast. My goal isn’t to 100% eliminate speed exploiting, but to mostly reduce it.
Here’s my method:
Tracking every player’s CFrame at 60 times a second for up to 2 seconds
Compare the distance between the latest and second latest CFrame
if movement detected is too fast, add it to a counter that resets every 9 seconds
Every 3 seconds check if that counter has reached 90 (because sometimes the system falsely thinks the player moving too fast)
Kick them
The issue is, in a 40 player server, most players started noticing performance issues because each player who is playing a match is being tracked at 60 FPS.
What better ways can I go about this? Is 60 fps too fast? I appreciate all the help I can get.
the way i would go on about it is dropping that check rate down to maybe twice a second since 60 is destroying your performance, and i’d suggest rubberbanding them back instead of kicking so you don’t lose players who just have bad wifi
Note that if you decide to use server authority, you might have to rewrite some scripts, for example if you want to apply impulses to the character or if you want to change some of their properties, everything except for animation playing will have to be done on the server