Just something I wanted to try, but now it breaks the script. I want to add an admin list so that only these players are able to use these exploits.
me = script.Parent:FindFirstChild("Humanoid")
admins = {"LukeGabrieI", "RAMD0", "Player1", "zCamm", "zMamii", "spikeIee", "ajman37", "axdymaivo",
"NyalonTheFine", "ajman37"}
TestCounter = 0
lastTime = 0
function checkstate(state)
--anti infinite jump checker
if state == Enum.HumanoidStateType.Seated then
if admins then
return nil
end
else
if lastTime > os.time() - 1 then
TestCounter = TestCounter + 1
if TestCounter > 2 then
--kill player
me.Health = 0
print(me.Parent.Name .. ", you were just caught jump hacking. :)")
end
else
lastTime = os.time()
TestCounter = 0
end
end
--anti fly checker
if state == Enum.HumanoidStateType.Flying then
if admins then
return nil
end
else
me.Health = 0
print(me.Parent.Name .. ", you were just caught flying. How did you do that? :)")
end
--anti speed walking
if me.WalkSpeed > 16 then
if admins then
return nil --[[I actually don't know what to put here, just something I tried, but now I'm just
dieing all the time.--]]
end
else
me.Health = 0
print(me.Parent.Name .. ", you were caught Speed Hacking. :)")
end
end
me.StateChanged:Connect(checkstate)

2 comments
Is this a local script?
Yes