Helllo, i wrote this code for Anti-Hacking! if i change WalkSpeed / JumpPower it doesnt kick me?? can someone please help?! i can try to print the WalkSpeed / JumpPower but its always the same, even if i change it!? i have to change the walkspeed sometimes so i made a Changing BoolValue so i can set Changing to true then change the walkspeed in the script.Configuration then wait until walkspeed was changed in humanoid then set Changing to false
Put this code into StarterCharacterScripts:
-- Settings --
kickIfFellOut = true
kickFromWalkSpeed = true
maxWalkSpeed = 20
kickFromJumpPower = true
maxJumpPower = 50
--------------
local config = Instance.new("Configuration", script)
local changing = Instance.new("BoolValue", config)
changing.Name = "Changing"
local walkspeed = Instance.new("IntValue", config)
walkspeed.Name = "WalkSpeed"
walkspeed.Value = 16
local jumppower = Instance.new("IntValue", config)
jumppower.Name = "JumpPower"
jumppower.Value = 50
local fpdh = workspace.FallenPartsDestroyHeight
local plr = game.Players:FindFirstChild(script.Parent.Name)
while true do wait()
local hum = script.Parent:FindFirstChild("Humanoid")
if hum then
if kickFromWalkSpeed then
if config.WalkSpeed.Value > maxWalkSpeed then
plr:Kick("WalkSpeed Cheat")
end
end
if (not config.Changing.Value) and (not config.WalkSpeed.Value == hum.WalkSpeed) then
plr:Kick("JumpPower Cheat")
end
if config.Changing.Value then
hum.WalkSpeed = config.WalkSpeed.Value
wait()
if config.Changing.Value then
wait()
end
if config.Changing.Value then
plr:Kick("WalkSpeed Cheat")
end
end
if kickFromJumpPower then
if config.JumpPower.Value > maxJumpPower then
plr:Kick("JumpPower Cheat")
end
end
if (not config.Changing.Value) and (not config.JumpPower.Value == hum.JumpPower) then
plr:Kick("JumpPower Cheat")
end
if config.Changing.Value then
hum.JumpPower = config.JumpPower.Value
wait()
if config.Changing.Value then
wait()
end
if config.Changing.Value then
plr:Kick("JumpPower Cheat")
end
end
end
if kickIfFellOut then
local hrp = plr.Character:FindFirstChild("HumanoidRootPart")
if hrp then
local pos = hrp.Position
if pos.Y < fpdh+100 then
plr:Kick("Fell out of world")
end
end
end
end

2 comments
While I will agree some checks should be done server side; a check or two on the client (especially WalkSpeed and JumpPower) should be fine, it could stop skids, but for those of experienced exploiters who know how the scripts work it might be a problem.
Even skids can bypass WalkSpeed and JumpPower checks. There are tons of scripts released on v3rmillion which do that