Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local UserInputService = game:GetService("UserInputService")
- local Players = game:GetService("Players")
- local Player = Players.LocalPlayer
- local Character = Player.Character or Player.CharacterAdded:Wait()
- local Humanoid = Character:WaitForChild("Humanoid")
- local Noclip = false
- game:GetService("RunService").Stepped:Connect(function()
- if Noclip then
- Humanoid:ChangeState(11)
- end
- end)
- UserInputService.InputBegan:Connect(function(Input, GameProcess)
- if not GameProcess then
- if Input.UserInputType == Enum.UserInputType.Keyboard then
- if Input.KeyCode == Enum.KeyCode.E then
- Noclip = not Noclip
- Humanoid:ChangeState(11)
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement