Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Anti-exploit has loaded. v1.0 demo")
- me = script.Parent:FindFirstChild("Humanoid")
- TestCounter = 0
- lastTime = 0
- lastState = 0
- function checkstate(state)
- --jump hack checker
- if state == Enum.HumanoidStateType.Seated then
- if lastTime > os.time() - 1 then
- TestCounter = TestCounter + 1
- if TestCounter > 2 then
- --kill player
- me.Health = 0
- print(me.Parent.Name .. ", you were caught jump exploiting :)")
- else
- print("jump limiter: " .. TestCounter)
- end
- end
- else
- lastTime = os.time()
- TestCounter = 0
- end
- end
- me.StateChanged:Connect(checkstate)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement