1x11337

noclip gui

Jul 19th, 2018
343
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Gui = Instance.new("ScreenGui", game.CoreGui)
  2. Button = Instance.new("TextButton", Gui)
  3. Button.Size = UDim2.new(0, 100, 0, 40)
  4. Button.BackgroundTransparency = 0.7
  5. Button.Position = UDim2.new(0.003, 0, 0.93, 0)
  6. Button.Text = "Enable Noclip"
  7. Button.TextColor3 = Color3.new(255, 255, 255)
  8. noclip = false
  9. game:GetService('RunService').Stepped:connect(function()
  10. if noclip then
  11. game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
  12. end
  13. end)
  14. Button.MouseButton1Down:connect(function()
  15. noclip = not noclip
  16. if Button.Text == "Enable Noclip" then
  17.     Button.Text = "Disable Noclip"
  18. else
  19.     Button.Text = "Enable Noclip"
  20. end
  21. end)
Add Comment
Please, Sign In to add comment