Advertisement
xTh3_Hunter

[FE] No-Clip Switch Gui (Roblox)

Jan 21st, 2020
719
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.80 KB | None | 0 0
  1. local NOCLIPGUI = Instance.new("ScreenGui", game.CoreGui)
  2. local MainGUI = Instance.new("Frame", NOCLIPGUI)
  3. local ONGUI = Instance.new("Frame", MainGUI)
  4. local ONTEXT = Instance.new("TextLabel", ONGUI)
  5. local OFFGUI = Instance.new("Frame", MainGUI)
  6. local OFFTEXT = Instance.new("TextLabel", OFFGUI)
  7. local NOCLIPTOGGLE = Instance.new("TextButton", MainGUI)
  8. NOCLIPGUI.Name = "NOCLIPGUI"
  9. NOCLIPGUI.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  10. MainGUI.Name = "MainGUI"
  11. MainGUI.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
  12. MainGUI.BorderColor3 = Color3.fromRGB(0, 0, 0)
  13. MainGUI.BorderSizePixel = 2
  14. MainGUI.Position = UDim2.new(.690335274, 0, .306801736, 0)
  15. MainGUI.Size = UDim2.new(0, 20, 0, 40)
  16. MainGUI.Draggable = true
  17. MainGUI.Active = true
  18. ONGUI.Name = "ONGUI"
  19. ONGUI.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  20. ONGUI.BorderColor3 = Color3.fromRGB(0, 0, 0)
  21. ONGUI.BorderSizePixel = 0
  22. ONGUI.Size = UDim2.new(0, 20, 0, 20)
  23. ONGUI.Visible = false
  24. ONTEXT.Name = "ONTEXT"
  25. ONTEXT.BackgroundColor3 = Color3.fromRGB(0, 255, 0)
  26. ONTEXT.BorderColor3 = Color3.fromRGB(0, 0, 0)
  27. ONTEXT.BorderSizePixel = 0
  28. ONTEXT.Size = UDim2.new(0, 20, 0, 20)
  29. ONTEXT.Font = Enum.Font.Cartoon
  30. ONTEXT.Text = "ON"
  31. ONTEXT.TextColor3 = Color3.fromRGB(0, 0, 0)
  32. ONTEXT.TextScaled = true
  33. ONTEXT.TextSize = 14
  34. ONTEXT.TextWrapped = true
  35. OFFGUI.Name = "OFFGUI"
  36. OFFGUI.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  37. OFFGUI.BorderColor3 = Color3.fromRGB(0, 0, 0)
  38. OFFGUI.BorderSizePixel = 0
  39. OFFGUI.Position = UDim2.new(0, 0, .5, 0)
  40. OFFGUI.Size = UDim2.new(0, 20, 0, 20)
  41. OFFGUI.Visible = true
  42. OFFTEXT.Name = "OFFTEXT"
  43. OFFTEXT.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  44. OFFTEXT.BorderColor3 = Color3.fromRGB(0, 0, 0)
  45. OFFTEXT.BorderSizePixel = 0
  46. OFFTEXT.Size = UDim2.new(0, 20, 0, 20)
  47. OFFTEXT.Font = Enum.Font.Cartoon
  48. OFFTEXT.Text = "OFF"
  49. OFFTEXT.TextColor3 = Color3.fromRGB(0, 0, 0)
  50. OFFTEXT.TextScaled = true
  51. OFFTEXT.TextSize = 14
  52. OFFTEXT.TextWrapped = true
  53. NOCLIPTOGGLE.Name = "NOCLIPTOGGLE"
  54. NOCLIPTOGGLE.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  55. NOCLIPTOGGLE.BackgroundTransparency = 1
  56. NOCLIPTOGGLE.BorderColor3 = Color3.fromRGB(0, 0, 0)
  57. NOCLIPTOGGLE.BorderSizePixel = 0
  58. NOCLIPTOGGLE.Size = UDim2.new(0, 20, 0, 40)
  59. NOCLIPTOGGLE.Font = Enum.Font.Cartoon
  60. NOCLIPTOGGLE.Text = ""
  61. NOCLIPTOGGLE.TextColor3 = Color3.fromRGB(0, 0, 0)
  62. NOCLIPTOGGLE.TextScaled = true
  63. NOCLIPTOGGLE.TextSize = 14
  64. NOCLIPTOGGLE.TextWrapped = true
  65. ME = game:GetService("Players").LocalPlayer
  66. game:GetService("RunService").Stepped:connect(function()
  67.     if noclip then
  68.         ME.Character.Humanoid:ChangeState(11)
  69.     end
  70. end)
  71. noclip = false
  72. NOCLIPTOGGLE.MouseButton1Click:connect(function()
  73.     if noclip == false then
  74.         noclip = true
  75.         ONGUI.Visible = true
  76.         OFFGUI.Visible = false
  77.     elseif noclip == true then
  78.         noclip = false
  79.         ONGUI.Visible = false
  80.         OFFGUI.Visible = true
  81.     end
  82. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement