#Antiexploit problem

1 messages · Page 1 of 1 (latest)

fringe dune
#

In suphi's antiexploit video he has a check that checks if the speed is greater than a set possible "MaxSpeed" however the player can achieve a MaxSpeed greater than what was in the video by falling off a tall part.

I'd like to know if there are potentially better ways to prevent this false positive instead of cranking up the MaxSpeed to a value that accommodates for the increment from the fall.

faint cedar
#

Basically, you should account for the Y velocity seperately

#

Speed is mostly on X and Z axis

fringe dune
faint cedar
#

You can determine MaxSpeed by doing player velocity (X + Y)/2

fringe dune
#

displacement (d = v₀t + 0.5at²) < well chatgpt gave me this

faint cedar
#

sorry i don't speak chatgpt language eto

fringe dune
fringe dune
faint cedar
#

woops i meant X and Z

#

Velocity is a Vector3

fringe dune
#

player position?

#

ohh okay

fringe dune
faint cedar
#

I wouldn't account for it at all tbh

#

For speed exploits, you mostly need to check X and Z

#

As you said, Y velocity can go high because of falling

fringe dune
faint cedar
#

No, that would include Y velocity

#

You need to remove Y

#

local characterVelocity = (character.Velocity.X + character.Velocity.Z)/2

fringe dune
#

i can just multiply that with 0,0,0

#

or that

#

yeah that would work

faint cedar
#

oh yeah

#

local characterVelocity = character.Velocity * Vector3.new(1, 0, 1)

fringe dune
#

well that wouldnt work actually

#

well another fix that ive thought about is capping the character velocity at a fixed amount that way even if they are falling it will increase their velocity and not lead to false positives although that seems like a bandaid fix

fringe dune
#

because the take taken for u to fall to something and run to soemthing can be different

#

okay this might work

#

actually this would render the second part useless

#

i dont need to add the second part

#

like this is only meant for exploiters

#

so i could only need to include the Y max velocity

#

ok thats a valid point

#

i mean i do

#

but like in the broader picture what i meant whats the first check can do the second check too

#

even without the second one the first works

#

so basically in conclusion its better just have a bigger leniency that accounts for falling as well :/

#

thats the first solution i had

fringe dune