I'm trying to make an AntiCheat system, but nothing happens when I increase my WalkSpeed.
for i, player in pairs(game.Players:GetPlayers()) do
wait(timeBetweenScans)
local cheaters = {}
if outputInfo == true then
print("Performing a Cheat Scan...")
end
if antiSpeed == true then
if player.Character.Humanoid.WalkSpeed > maxSpeed then
player:Kick(speedReason)
end
end
if antiJump == true then
if player.Character.Humanoid.JumpPower > maxJump then
player:Kick(jumpReason)
end
end
if antiGod == true then
if player.Character.Humanoid.MaxHealth > maxHealth then
player:Kick(godReason)
end
end
if outputInfo == true then
end
end

1 comment
Unused variable 'cheaters', recommend to remove it