Guest User

Noclip Script

a guest
Mar 1st, 2025
1,976
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.58 KB | Gaming | 0 0
  1. local player = game.Players.LocalPlayer
  2. local character = player.Character or player.CharacterAdded:Wait()
  3. local humanoid = character:WaitForChild("Humanoid")
  4.  
  5. -- GUI Setup
  6. local screenGui = Instance.new("ScreenGui")
  7. screenGui.Parent = player:WaitForChild("PlayerGui")
  8. screenGui.Name = "NoclipGUI"
  9.  
  10. local frame = Instance.new("Frame")
  11. frame.Size = UDim2.new(0, 250, 0, 150)
  12. frame.Position = UDim2.new(0.5, -125, 0.3, 0)
  13. frame.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  14. frame.BorderSizePixel = 2
  15. frame.Active = true
  16. frame.Draggable = true
  17. frame.Parent = screenGui
  18.  
  19. -- Title Bar
  20. local titleBar = Instance.new("Frame")
  21. titleBar.Size = UDim2.new(1, 0, 0, 30)
  22. titleBar.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  23. titleBar.Parent = frame
  24.  
  25. local titleLabel = Instance.new("TextLabel")
  26. titleLabel.Size = UDim2.new(1, -60, 1, 0)
  27. titleLabel.BackgroundTransparency = 1
  28. titleLabel.Text = "Noclip GUI"
  29. titleLabel.TextColor3 = Color3.new(1, 1, 1)
  30. titleLabel.Font = Enum.Font.SourceSansBold
  31. titleLabel.TextScaled = true
  32. titleLabel.Parent = titleBar
  33.  
  34. local closeButton = Instance.new("TextButton")
  35. closeButton.Size = UDim2.new(0, 25, 0, 25)
  36. closeButton.Position = UDim2.new(1, -30, 0.1, 0)
  37. closeButton.BackgroundColor3 = Color3.fromRGB(200, 0, 0)
  38. closeButton.Text = "X"
  39. closeButton.TextColor3 = Color3.new(1, 1, 1)
  40. closeButton.Parent = titleBar
  41.  
  42. local minimizeButton = Instance.new("TextButton")
  43. minimizeButton.Size = UDim2.new(0, 25, 0, 25)
  44. minimizeButton.Position = UDim2.new(1, -60, 0.1, 0)
  45. minimizeButton.BackgroundColor3 = Color3.fromRGB(150, 150, 150)
  46. minimizeButton.Text = "-"
  47. minimizeButton.TextColor3 = Color3.new(1, 1, 1)
  48. minimizeButton.Parent = titleBar
  49.  
  50. local toggleNoclipButton = Instance.new("TextButton")
  51. toggleNoclipButton.Size = UDim2.new(0.8, 0, 0, 40)
  52. toggleNoclipButton.Position = UDim2.new(0.1, 0, 0.4, 0)
  53. toggleNoclipButton.Text = "Noclip: OFF"
  54. toggleNoclipButton.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
  55. toggleNoclipButton.TextColor3 = Color3.new(1, 1, 1)
  56. toggleNoclipButton.Parent = frame
  57.  
  58. local creditLabel = Instance.new("TextLabel")
  59. creditLabel.Size = UDim2.new(1, 0, 0, 20)
  60. creditLabel.Position = UDim2.new(0, 0, 0.85, 0)
  61. creditLabel.BackgroundTransparency = 1
  62. creditLabel.Text = "Made by LEXEDYT"
  63. creditLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  64. creditLabel.TextScaled = true
  65. creditLabel.Font = Enum.Font.SourceSansBold
  66. creditLabel.Parent = frame
  67.  
  68. -- Noclip Functionality
  69. local noclip = false
  70. local function toggleNoclip()
  71. noclip = not noclip
  72. toggleNoclipButton.Text = noclip and "Noclip: ON" or "Noclip: OFF"
  73. toggleNoclipButton.BackgroundColor3 = noclip and Color3.fromRGB(0, 200, 0) or Color3.fromRGB(100, 100, 100)
  74.  
  75. while noclip do
  76. for _, part in pairs(character:GetDescendants()) do
  77. if part:IsA("BasePart") and part.CanCollide then
  78. part.CanCollide = false
  79. end
  80. end
  81. task.wait()
  82. end
  83. end
  84.  
  85. toggleNoclipButton.MouseButton1Click:Connect(toggleNoclip)
  86.  
  87. -- Minimize GUI Function
  88. local minimized = false
  89. minimizeButton.MouseButton1Click:Connect(function()
  90. minimized = not minimized
  91. for _, obj in pairs(frame:GetChildren()) do
  92. if obj ~= titleBar and obj ~= creditLabel then
  93. obj.Visible = not minimized
  94. end
  95. end
  96. frame.Size = minimized and UDim2.new(0, 250, 0, 30) or UDim2.new(0, 250, 0, 150)
  97. minimizeButton.Text = minimized and "+" or "-"
  98. end)
  99.  
  100. -- Close GUI Function
  101. closeButton.MouseButton1Click:Connect(function()
  102. noclip = false
  103. screenGui:Destroy()
  104. end)
  105.  
  106. print("Noclip GUI Loaded Successfully!")
Advertisement
Add Comment
Please, Sign In to add comment