Anti-Teleport Exploit Issues

So I do not believe you have to track CFrames… you’ll be fine with tracking a Vector3 as it houses just position, CFrames house position and rotation. Now, to calculate how far they have moved, you could maybe try calculating how far on each axis the player has moved, get the absolute value, and get the sum to see how far they have moved. Would be:

local xDelta = math.abs(finalPos.x - startPos.x);
--do the same for y and z

Now this is a lot of work to calculate the distance so I’ll play with some math and try to find an easier way.

Edit: Nope… they are separate terms no combining. You could add all axis together and do a mass subtraction but when you get negative values in there is gets messy as you can’t do Math.abs on it so we’re doing it by each axis. But Vector subtraction works by elements so we can do

local delta = finishVector - startVector

But we have to get math.abs on the parameters somehow so we get only positive values. Sorry I couldn’t do more!!