YANIS_EXPLOITS

NOCLIP PRESS E TO ENABLE/DISABLE

Sep 14th, 2019
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. --Made by !!!RelentlessRaptor#5709 on discord.
  2. --Press E to enable / disable
  3.  
  4. enabled = false
  5. function onKeyPress(actionName, userInputState, inputObject)
  6. if userInputState == Enum.UserInputState.Begin then
  7. if enabled == true then
  8. enabled = false
  9. else
  10. enabled = true
  11. end
  12. end
  13. end
  14. game.ContextActionService:BindAction("keyPress", onKeyPress, false, Enum.KeyCode.E)
  15.  
  16. game:GetService('Players').LocalPlayer.Character.Torso.Touched:connect(function(t)
  17. if enabled == true then
  18. if t.CanCollide == true then
  19. t.CanCollide = false
  20. end
  21. end
  22. end)
  23. game:GetService('Players').LocalPlayer.Character.Torso.TouchEnded:connect(function(t)
  24. if enabled == true then
  25. if t.CanCollide == false then
  26. t.CanCollide = true
  27. end
  28. end
  29.  
  30. end)
Add Comment
Please, Sign In to add comment