GUI Removal
Key RequiredUniversal

GUI Removal

Universal ScriptHarmless_ScriptsHarmless_Scripts 305 views 26 executesUpdated Jan 9, 2026
Unrated
00
Lua Script•227 lines (7867 chars)
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")
local UserInputService = game:GetService("UserInputService")
local TweenService = game:GetService("TweenService")
local guisHidden = true
local guiStates = {}

local function hideGuis()
    for _, gui in pairs(playerGui:GetChildren()) do
        if gui:IsA("ScreenGui") or gui:IsA("GuiMain") then
            if gui.Name ~= "GuiHiderToggle" then
                guiStates[gui] = gui.Enabled
                gui.Enabled = false
            end
        end
    end
end

local function showGuis()
    for gui, wasEnabled in pairs(guiStates) do
        if gui and gui.Parent then
            gui.Enabled = wasEnabled
        end
    end
end

local screenGui = Instance.new("ScreenGui")
screenGui.Name = "GuiHiderToggle"
screenGui.ResetOnSpawn = false
screenGui.Parent = playerGui

local mainFrame = Instance.new("Frame")
mainFrame.Size = UDim2.new(0, 150, 0, 145)
mainFrame.Position = UDim2.new(0, 10, 0, 10)
mainFrame.BackgroundTransparency = 1
mainFrame.ClipsDescendants = true
mainFrame.Parent = screenGui

local topBar = Instance.new("Frame")
topBar.Size = UDim2.new(1, 0, 0, 40)
topBar.Position = UDim2.new(0, 0, 0, 0)
topBar.BackgroundColor3 = Color3.fromRGB(18, 18, 18)
topBar.BorderSizePixel = 0
topBar.Parent = mainFrame

local topCorner = Instance.new("UICorner")
topCorner.CornerRadius = UDim.new(0, 8)
topCorner.Parent = topBar

local topBarShadow = Instance.new("ImageLabel")
topBarShadow.Size = UDim2.new(1, 0, 1, 0)
topBarShadow.Position = UDim2.new(0, 0, 0, 0)
topBarShadow.BackgroundTransparency = 1
topBarShadow.Image = "rbxasset://textures/ui/GuiImagePlaceholder.png"
topBarShadow.ImageColor3 = Color3.fromRGB(0, 0, 0)
topBarShadow.ImageTransparency = 0.7
topBarShadow.ScaleType = Enum.ScaleType.Slice
topBarShadow.SliceCenter = Rect.new(10, 10, 10, 10)
topBarShadow.Parent = topBar

local closeButton = Instance.new("TextButton")
closeButton.Size = UDim2.new(0, 40, 0, 40)
closeButton.Position = UDim2.new(1, -40, 0, 0)
closeButton.BackgroundTransparency = 1
closeButton.Text = "-"
closeButton.TextColor3 = Color3.fromRGB(255, 255, 255)
closeButton.Font = Enum.Font.GothamBold
closeButton.TextSize = 24
closeButton.Parent = topBar

local contentFrame = Instance.new("Frame")
contentFrame.Size = UDim2.new(1, 0, 0, 110)
contentFrame.Position = UDim2.new(0, 0, 0, 35)
contentFrame.BackgroundColor3 = Color3.fromRGB(25, 25, 26)
contentFrame.BorderSizePixel = 0
contentFrame.Parent = mainFrame

local contentCorner = Instance.new("UICorner")
contentCorner.CornerRadius = UDim.new(0, 8)
contentCorner.Parent = contentFrame

local contentShadow = Instance.new("ImageLabel")
contentShadow.Size = UDim2.new(1, 0, 1, 0)
contentShadow.Position = UDim2.new(0, 0, 0, 0)
contentShadow.BackgroundTransparency = 1
contentShadow.Image = "rbxasset://textures/ui/GuiImagePlaceholder.png"
contentShadow.ImageColor3 = Color3.fromRGB(0, 0, 0)
contentShadow.ImageTransparency = 0.5
contentShadow.ScaleType = Enum.ScaleType.Slice
contentShadow.SliceCenter = Rect.new(10, 10, 10, 10)
contentShadow.Parent = contentFrame

local topCoverFrame = Instance.new("Frame")
topCoverFrame.Size = UDim2.new(1, 0, 0, 8)
topCoverFrame.Position = UDim2.new(0, 0, 0, 0)
topCoverFrame.BackgroundColor3 = Color3.fromRGB(25, 25, 26)
topCoverFrame.BorderSizePixel = 0
topCoverFrame.Parent = contentFrame

local switchFrame = Instance.new("Frame")
switchFrame.Size = UDim2.new(0, 80, 0, 40)
switchFrame.Position = UDim2.new(0.5, -40, 0, 15)
switchFrame.BackgroundColor3 = Color3.fromRGB(33, 33, 34)
switchFrame.BorderSizePixel = 0
switchFrame.Parent = contentFrame

local switchCorner = Instance.new("UICorner")
switchCorner.CornerRadius = UDim.new(1, 0)
switchCorner.Parent = switchFrame

local switchButton = Instance.new("TextButton")
switchButton.Size = UDim2.new(0, 32, 0, 32)
switchButton.Position = UDim2.new(0, 4, 0, 4)
switchButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
switchButton.BorderSizePixel = 0
switchButton.Text = ""
switchButton.Parent = switchFrame

local buttonCorner = Instance.new("UICorner")
buttonCorner.CornerRadius = UDim.new(1, 0)
buttonCorner.Parent = switchButton

local buttonStroke = Instance.new("UIStroke")
buttonStroke.Color = Color3.fromRGB(20, 20, 20)
buttonStroke.Thickness = 3
buttonStroke.Parent = switchButton

local label = Instance.new("TextLabel")
label.Size = UDim2.new(1, 0, 0, 30)
label.Position = UDim2.new(0, 0, 0, 65)
label.BackgroundTransparency = 1
label.TextColor3 = Color3.fromRGB(255, 255, 255)
label.Text = "GUIs: OFF"
label.Font = Enum.Font.Gotham
label.TextSize = 24
label.Parent = contentFrame

hideGuis()

local isMinimized = false

closeButton.MouseButton1Click:Connect(function()
    isMinimized = not isMinimized
    
    local sizeTween
    if isMinimized then
        sizeTween = TweenService:Create(mainFrame, TweenInfo.new(0.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {Size = UDim2.new(0, 150, 0, 145)})
        closeButton.Text = "-"
    else
        sizeTween = TweenService:Create(mainFrame, TweenInfo.new(0.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out), {Size = UDim2.new(0, 150, 0, 40)})
        closeButton.Text = "+"
    end
    
    sizeTween:Play()
end)

local dragging = false
local dragStart
local startPos

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

topBar.InputChanged:Connect(function(input)
    if dragging and (input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch) then
        local delta = input.Position - dragStart
        mainFrame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
    end
end)

topBar.InputEnded:Connect(function(input)
    if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
        dragging = false
    end
end)

local function toggleSwitch()
    guisHidden = not guisHidden
    
    local buttonTween
    local colorTween
    local strokeTween
    
    if guisHidden then
        buttonTween = TweenService:Create(switchButton, TweenInfo.new(0.2, Enum.EasingStyle.Quad), {Position = UDim2.new(0, 4, 0, 4)})
        colorTween = TweenService:Create(switchFrame, TweenInfo.new(0.2, Enum.EasingStyle.Quad), {BackgroundColor3 = Color3.fromRGB(33, 33, 34)})
        strokeTween = TweenService:Create(buttonStroke, TweenInfo.new(0.2, Enum.EasingStyle.Quad), {Color = Color3.fromRGB(20, 20, 20)})
        label.Text = "GUIs: OFF"
        hideGuis()
    else
        buttonTween = TweenService:Create(switchButton, TweenInfo.new(0.2, Enum.EasingStyle.Quad), {Position = UDim2.new(0, 44, 0, 4)})
        colorTween = TweenService:Create(switchFrame, TweenInfo.new(0.2, Enum.EasingStyle.Quad), {BackgroundColor3 = Color3.fromRGB(54, 97, 255)})
        strokeTween = TweenService:Create(buttonStroke, TweenInfo.new(0.2, Enum.EasingStyle.Quad), {Color = Color3.fromRGB(35, 65, 180)})
        label.Text = "GUIs: ON"
        showGuis()
    end
    
    buttonTween:Play()
    colorTween:Play()
    strokeTween:Play()
end

switchButton.MouseButton1Click:Connect(toggleSwitch)

playerGui.ChildAdded:Connect(function(gui)
    wait()
    if guisHidden and (gui:IsA("ScreenGui") or gui:IsA("GuiMain")) then
        if gui.Name ~= "GuiHiderToggle" then
            guiStates[gui] = gui.Enabled
            gui.Enabled = false
        end
    end
end)

UserInputService.InputBegan:Connect(function(input, gameProcessed)
    if gameProcessed then return end
    
    if input.KeyCode == Enum.KeyCode.H then
        toggleSwitch()
    end
end)

Features & Information

- Disabling Gui im too lazy to make the thumbnail
#Gui#Universal#Remove#Delete#GUI Removal

Community Comments (1)

Harmless_ScriptsHarmless_ScriptsJan 9, 2026

Guys ignore the thumbnail ill make it better tomorrow

More Scripts for Universal Scripts