Im trying to improve this anti exploit, because Im not sure if its very affective and or who it will affect in the long run.
local Humanoid = script.Parent:FindFirstChildOfClass("Humanoid")
Humanoid.Running:Connect(function()
local speed = Humanoid.WalkSpeed if speed > 16 then
local player = game.Players:GetPlayerFromCharacter(script.Parent) player:Kick("Exploit Detected (Walk Speed Risen)")
end
end)
Humanoid.Jumping:Connect(function(jumping)
if jumping then local JumpPower = Humanoid.JumpPower
if JumpPower > 50 then
local player = game.Players:GetPlayerFromCharacter(script.Parent) player:Kick("Exploit Detected (Jump Power Risen)")
end else return
end
end)
If the script is server sided, it just wont work. If the script is client sided, exploiter can easily disable it or just hook the Player:Kick() function, fully bypassing your anticheat. Also prevent giving the reason you kicked the player, it will make the exploiter confused sometimes.
I meant from the server, but theres also the possibility that people can increment their position by 1 stud really fast. I don’t know a fix for that .-.
for i, connection in pairs(getconnections(game.Players.LocalPlayer.Character.Humanoid.Jumping)) do
connection:Disable()
end
for i, connection in pairs(getconnections(game.Players.LocalPlayer.Character.Humanoid.Running)) do
connection:Disable()
end