local ScreenGui = Instance.new("ScreenGui") local Frame = Instance.new("Frame") local NoclipButton = Instance.new("TextButton") ScreenGui.Parent = game.CoreGui Frame.Parent = ScreenGui Frame.BackgroundColor3 = Color3.fromRGB(25, 25, 25) Frame.Position = UDim2.new(0.5, -150, 0.5, -75) Frame.Size = UDim2.new(0, 300, 0, 200) Frame.Active = true Frame.Draggable = true Frame.BorderSizePixel = 0 Frame.BackgroundTransparency = 0.05 NoclipButton.Parent = Frame NoclipButton.BackgroundColor3 = Color3.fromRGB(0, 102, 204) NoclipButton.Position = UDim2.new(0.25, 0, 0.35, 0) NoclipButton.Size = UDim2.new(0.5, 0, 0.3, 0) NoclipButton.Text = "Toggle Noclip" NoclipButton.TextColor3 = Color3.fromRGB(255, 255, 255) NoclipButton.Font = Enum.Font.GothamBlack NoclipButton.TextSize = 30 NoclipButton.BorderSizePixel = 0 NoclipButton.BackgroundTransparency = 0.1 local noclip = false local function toggleNoclip() noclip = not noclip local character = game.Players.LocalPlayer.Character if character then for _, part in pairs(character:GetDescendants()) do if part:IsA("BasePart") then part.CanCollide = not noclip end end if noclip then print("Noclip Enabled") else print("Noclip Disabled") end end end NoclipButton.MouseButton1Click:Connect(toggleNoclip)