Advertisement
3DCreator

Press E To No Clip

Sep 22nd, 2021 (edited)
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.67 KB | None | 0 0
  1. local UserInputService = game:GetService("UserInputService")
  2. local Players = game:GetService("Players")
  3. local Player = Players.LocalPlayer
  4. local Character = Player.Character or Player.CharacterAdded:Wait()
  5. local Humanoid = Character:WaitForChild("Humanoid")
  6. local Noclip = false
  7.  
  8. game:GetService("RunService").Stepped:Connect(function()
  9.     if Noclip then
  10.         Humanoid:ChangeState(11)
  11.     end
  12. end)
  13.  
  14.  
  15. UserInputService.InputBegan:Connect(function(Input, GameProcess)
  16.     if not GameProcess then
  17.         if Input.UserInputType == Enum.UserInputType.Keyboard then
  18.             if Input.KeyCode == Enum.KeyCode.E then
  19.                 Noclip = not Noclip
  20.                 Humanoid:ChangeState(11)
  21.             end
  22.         end
  23.     end
  24. end)
  25.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement