#Get the maximum distance a player can travel each frame

7 messages · Page 1 of 1 (latest)

dire lark
#

I am making an anti cheat and there is nothing online about how to do this, I have tried but it has failed.

local function GetValuePerFrame(Value, Ping, FPS, DeltaTime)
    return (1 + Ping / PingLeniency) * (Value + (DeltaTime + 3)) / FPS -- ping leniency is 10
end
full wing
#

What are you expecting to get as a result, and what do you actually get when trying out your script ?

devout pivotBOT
#

studio** You are now Level 1! **studio

dire lark
#

What do you mean what are you expecting? I get 0.31694444445893166 when this is ran at 16 walkspeed and 60 fps and ~50 ping.

full wing
dire lark
#

Oh sorry, it is giving values too low.

full wing
# dire lark Oh sorry, it is giving values too low.

Oh sure, well i'm so bad at maths actually
Try to print out your values individually and see if one is weirdly too low and might be a problem in your calculation
And if not, just try to find another calculation I guess but i can't be of any help on that, sorry :!