Anti exploit system apply phisics

There are several things here that need to be mentioned such as for the simple fact that the WalkSpeed ​​property of the humanoid represents the units per second that the player is going to travel, but we know that from one point to another what is calculated is the magnitude then What I need is to calculate the time it will take to travel with the speed of the 50 magnitude humanoid.

If you’re trying to make an anti-speed Anticheat then you can check the RootPart position ( only x and z axis ) every second and compare it to their last position 1 second ago to see if it’s greater than their current walkspeed ( with some room for high ping so Humanoid.WalkSpeed + 5 )