Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local player = game.Players.LocalPlayer
- local character = player.Character or player.CharacterAdded:Wait()
- local humanoid = character:WaitForChild("Humanoid")
- -- GUI Setup
- local screenGui = Instance.new("ScreenGui")
- screenGui.Parent = player:WaitForChild("PlayerGui")
- screenGui.Name = "NoclipGUI"
- local frame = Instance.new("Frame")
- frame.Size = UDim2.new(0, 250, 0, 150)
- frame.Position = UDim2.new(0.5, -125, 0.3, 0)
- frame.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
- frame.BorderSizePixel = 2
- frame.Active = true
- frame.Draggable = true
- frame.Parent = screenGui
- -- Title Bar
- local titleBar = Instance.new("Frame")
- titleBar.Size = UDim2.new(1, 0, 0, 30)
- titleBar.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
- titleBar.Parent = frame
- local titleLabel = Instance.new("TextLabel")
- titleLabel.Size = UDim2.new(1, -60, 1, 0)
- titleLabel.BackgroundTransparency = 1
- titleLabel.Text = "Noclip GUI"
- titleLabel.TextColor3 = Color3.new(1, 1, 1)
- titleLabel.Font = Enum.Font.SourceSansBold
- titleLabel.TextScaled = true
- titleLabel.Parent = titleBar
- local closeButton = Instance.new("TextButton")
- closeButton.Size = UDim2.new(0, 25, 0, 25)
- closeButton.Position = UDim2.new(1, -30, 0.1, 0)
- closeButton.BackgroundColor3 = Color3.fromRGB(200, 0, 0)
- closeButton.Text = "X"
- closeButton.TextColor3 = Color3.new(1, 1, 1)
- closeButton.Parent = titleBar
- local minimizeButton = Instance.new("TextButton")
- minimizeButton.Size = UDim2.new(0, 25, 0, 25)
- minimizeButton.Position = UDim2.new(1, -60, 0.1, 0)
- minimizeButton.BackgroundColor3 = Color3.fromRGB(150, 150, 150)
- minimizeButton.Text = "-"
- minimizeButton.TextColor3 = Color3.new(1, 1, 1)
- minimizeButton.Parent = titleBar
- local toggleNoclipButton = Instance.new("TextButton")
- toggleNoclipButton.Size = UDim2.new(0.8, 0, 0, 40)
- toggleNoclipButton.Position = UDim2.new(0.1, 0, 0.4, 0)
- toggleNoclipButton.Text = "Noclip: OFF"
- toggleNoclipButton.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
- toggleNoclipButton.TextColor3 = Color3.new(1, 1, 1)
- toggleNoclipButton.Parent = frame
- local creditLabel = Instance.new("TextLabel")
- creditLabel.Size = UDim2.new(1, 0, 0, 20)
- creditLabel.Position = UDim2.new(0, 0, 0.85, 0)
- creditLabel.BackgroundTransparency = 1
- creditLabel.Text = "Made by LEXEDYT"
- creditLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- creditLabel.TextScaled = true
- creditLabel.Font = Enum.Font.SourceSansBold
- creditLabel.Parent = frame
- -- Noclip Functionality
- local noclip = false
- local function toggleNoclip()
- noclip = not noclip
- toggleNoclipButton.Text = noclip and "Noclip: ON" or "Noclip: OFF"
- toggleNoclipButton.BackgroundColor3 = noclip and Color3.fromRGB(0, 200, 0) or Color3.fromRGB(100, 100, 100)
- while noclip do
- for _, part in pairs(character:GetDescendants()) do
- if part:IsA("BasePart") and part.CanCollide then
- part.CanCollide = false
- end
- end
- task.wait()
- end
- end
- toggleNoclipButton.MouseButton1Click:Connect(toggleNoclip)
- -- Minimize GUI Function
- local minimized = false
- minimizeButton.MouseButton1Click:Connect(function()
- minimized = not minimized
- for _, obj in pairs(frame:GetChildren()) do
- if obj ~= titleBar and obj ~= creditLabel then
- obj.Visible = not minimized
- end
- end
- frame.Size = minimized and UDim2.new(0, 250, 0, 30) or UDim2.new(0, 250, 0, 150)
- minimizeButton.Text = minimized and "+" or "-"
- end)
- -- Close GUI Function
- closeButton.MouseButton1Click:Connect(function()
- noclip = false
- screenGui:Destroy()
- end)
- print("Noclip GUI Loaded Successfully!")
Advertisement
Add Comment
Please, Sign In to add comment