Advertisement
RUDEAlex

Untitled

Jul 17th, 2017
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. print("Anti-exploit has loaded. v1.0 demo")
  2.  
  3. me = script.Parent:FindFirstChild("Humanoid")
  4.  
  5. TestCounter = 0
  6. lastTime = 0
  7. lastState = 0
  8.  
  9. function checkstate(state)
  10.  
  11. --jump hack checker
  12. if state == Enum.HumanoidStateType.Seated then
  13. if lastTime > os.time() - 1 then
  14. TestCounter = TestCounter + 1
  15. if TestCounter > 2 then
  16. --kill player
  17. me.Health = 0
  18. print(me.Parent.Name .. ", you were caught jump exploiting :)")
  19. else
  20. print("jump limiter: " .. TestCounter)
  21.  
  22. end
  23. end
  24. else
  25. lastTime = os.time()
  26. TestCounter = 0
  27. end
  28. end
  29.  
  30.  
  31.  
  32.  
  33. me.StateChanged:Connect(checkstate)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement