#Anti-Exploit
1 messages · Page 1 of 1 (latest)
you can proof your game against common exploits
with sanity checks
it would be better
how are u doing this
how are u blocking the speed
yea well false positives do happen
as long as you are not banning them
IMO it's better to record a player's last 5s of movement at all times. Have a variable on the server side for if it's bypassed or not for special cases like in case of distant teleports. Then just constantly check if within the last 1 second, the magnitude is bigger than a certain amount. It is it, set their location back to the previous second's position.
also
don't do this
local HumanoidRootPart = Character:WaitForChild("HumanoidRootPart")
local Humanoid = Character:WaitForChild("Humanoid")
repeat task.wait() until Humanoid and HumanoidRootPart
local HumanoidRootPart = Character:WaitForChild("Humanoid") --this will yield until it is either infinite (5 server time seconds) or it is found.
--WaitForChild takes in a second parameter of a time value for how long you can yield until the object comes into existence.
--You don't need to make a loop until both exists since they will either error at the variable or instantly go through