Advertisement
Jjgames

Rblx noclip

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