People tried my game.but i see that they cheated with Fly or noclip.this sucks
How can i add a Fly Anticheat that teleports the Player to last position if player has gone too far from last position?
my idea is:
-Using a loop
-Then save the last position so i can teleport back to the last position if they cheat
-Waiting 1 second
-if players current position variables like X/Y/Z is bigger than the values i gave then they will be back to their last position.
-And then get the last position again.
When making an anticheat, make sure that lag won’t trigger it. This was a problem with one of the anticheats I made, as the server sees lag or a choppy client moment as teleporting in extreme client lag.
if you want to answer this,how can i detect the player is flying? so i can fix my code.
my idea might be worked but the only reason is when i enter the game the script always prints 0,0,0 position even i get the humanoidrootpart position.(i deleted the script)