noclip gui
Key RequiredUniversal

noclip gui

Universal ScriptHi_aHi_a 15.8K views 4.4K executesUpdated Apr 3, 2025
5.0/ 5(2 votes)
20100% Positive
Lua Script•109 lines (3192 chars)
local player = game.Players.LocalPlayer
local noclipEnabled = false

-- Create GUI
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = game.CoreGui

-- Main Frame (Container)
local frame = Instance.new("Frame")
frame.Size = UDim2.new(0, 150, 0, 80) -- Increased height to add draggable bar
frame.Position = UDim2.new(0.1, 0, 0.1, 0)
frame.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
frame.Parent = screenGui

-- Draggable Bar
local dragBar = Instance.new("Frame")
dragBar.Size = UDim2.new(1, 0, 0, 30)
dragBar.Position = UDim2.new(0, 0, 0, 0)
dragBar.BackgroundColor3 = Color3.fromRGB(70, 70, 70)
dragBar.Parent = frame

local dragText = Instance.new("TextLabel")
dragText.Size = UDim2.new(1, 0, 1, 0)
dragText.BackgroundTransparency = 1
dragText.Text = "Drag Here"
dragText.TextColor3 = Color3.fromRGB(255, 255, 255)
dragText.Parent = dragBar

-- Toggle Button
local toggleButton = Instance.new("TextButton")
toggleButton.Size = UDim2.new(1, 0, 0, 50)
toggleButton.Position = UDim2.new(0, 0, 0, 30) -- Below the drag bar
toggleButton.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
toggleButton.TextColor3 = Color3.fromRGB(255, 255, 255)
toggleButton.Text = "Noclip: OFF"
toggleButton.Parent = frame

-- Mobile Dragging (Only on Drag Bar)
local dragging
local dragInput
local dragStart
local startPos

local function update(input)
    local delta = input.Position - dragStart
    frame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
end

dragBar.InputBegan:Connect(function(input)
    if input.UserInputType == Enum.UserInputType.Touch or input.UserInputType == Enum.UserInputType.MouseButton1 then
        dragging = true
        dragStart = input.Position
        startPos = frame.Position

        input.Changed:Connect(function()
            if input.UserInputState == Enum.UserInputState.End then
                dragging = false
            end
        end)
    end
end)

dragBar.InputChanged:Connect(function(input)
    if input.UserInputType == Enum.UserInputType.Touch or input.UserInputType == Enum.UserInputType.MouseMovement then
        dragInput = input
    end
end)

game:GetService("UserInputService").InputChanged:Connect(function(input)
    if input == dragInput and dragging then
        update(input)
    end
end)

-- Noclip Function
local function setNoclip(state)
    noclipEnabled = state
    toggleButton.Text = "Noclip: " .. (noclipEnabled and "ON" or "OFF")

    while noclipEnabled do
        local character = player.Character
        if character then
            for _, part in ipairs(character:GetChildren()) do
                if part:IsA("BasePart") then
                    part.CanCollide = false
                end
            end
        end
        task.wait() -- Prevents freezing
    end
end

toggleButton.MouseButton1Click:Connect(function()
    setNoclip(not noclipEnabled)
end)

-- Auto-reapply after respawn
local function onCharacterAdded()
    task.wait(1) -- Small delay to ensure the character loads
    if noclipEnabled then
        setNoclip(true)
    end
end

player.CharacterAdded:Connect(onCharacterAdded)

if player.Character then
    onCharacterAdded()
end

Features & Information

it still make you noclip after you die, a useful function grabbable gui
#gpt

Community Comments (0)

No comments yet for this script.

More Scripts for Universal Scripts