Advertisement
King12255

Roblox Noclip Gui

Dec 2nd, 2024 (edited)
1,069
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.81 KB | None | 0 0
  1. local ScreenGui = Instance.new("ScreenGui")
  2. local Toggle = Instance.new("TextButton")
  3.  
  4. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  5.  
  6. local Noclip = false
  7.  
  8. Toggle.Parent = ScreenGui
  9. Toggle.Size = UDim2.new(0, 200, 0, 50)
  10. Toggle.Position = UDim2.new(0.5, -100, 0.5, -25)
  11. Toggle.Text = "Noclip"
  12. Toggle.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  13. Toggle.TextScaled = true
  14. Toggle.Active = true
  15. Toggle.Draggable = true
  16.  
  17. local function Credits() game:GetService("StarterGui"):SetCore("SendNotification", {
  18.         Title = "Noclip Gui",
  19.         Text = "Made By the_king.78",
  20.         Duration = 12
  21.     })
  22. end
  23.  
  24. local Name = game.Players.LocalPlayer.Name
  25.  
  26. local function NoclipFunc()
  27.     Noclip = not Noclip
  28.  
  29.     if Noclip then
  30.         Toggle.BackgroundColor3 = Color3.fromRGB(0, 255, 0)
  31.  
  32.         game:GetService('RunService').Stepped:Connect(function()
  33.             if Noclip then
  34.                 for _, b in pairs(game.Workspace:GetChildren()) do
  35.                     if b.Name == Name then
  36.                         for _, v in pairs(game.Workspace[Name]:GetChildren()) do
  37.                             if v:IsA("BasePart") then
  38.                                 v.CanCollide = false
  39.                             end
  40.                         end
  41.                     end
  42.                 end
  43.             end
  44.         end)
  45.     else
  46.         Toggle.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  47.  
  48.         for _, b in pairs(game.Workspace:GetChildren()) do
  49.             if b.Name == Name then
  50.                 for _, v in pairs(game.Workspace[Name]:GetChildren()) do
  51.                     if v:IsA("BasePart") then
  52.                         v.CanCollide = true
  53.                     end
  54.                 end
  55.             end
  56.         end
  57.     end
  58. end
  59.  
  60. Credits()
  61. Toggle.MouseButton1Click:Connect(NoclipFunc)
Tags: Roblox Script Gui
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement