Toggle Delta UI Button By Null
Key RequiredUniversal

Toggle Delta UI Button By Null

Universal ScriptNPC_PlayersNoobNPC_PlayersNoob 1.2K views 1.8K executesUpdated May 9, 2026
5.0/ 5(2 votes)
20100% Positive
Lua Script•130 lines (4359 chars)
--[[
    DELTA ULTIMATE SUPPRESSOR:
    1. 状态锁定:当隐藏开启时,强制 Delta 保持关闭,防止其自动恢复。
    2. 精准指纹:依然只针对包含 internals/i1-i18 资源的 Delta UI。
    3. 实时压制:即使你点击了 Delta 悬浮球,UI 也会瞬间消失,无法显示。
]]
local CoreGui = gethui and gethui() or game:GetService("CoreGui")
local UserInputService = game:GetService("UserInputService")

local deltaContainers = {} 
local deltaFloats = {}     
local isLockedHidden = false -- 核心控制锁

-- // 1. 严格指纹鉴定(只认 Delta 本地资源)
local function isDeltaAsset(path)
    path = tostring(path):lower()
    if path:find("internals") or path:find("assets/i") or path:find("delta") then
        return true
    end
    for i = 1, 18 do
        if path:find("i" .. i .. "%.") or path:match("i" .. i .. "$") then return true end
    end
    return false
end

-- // 2. 扫描与识别:区分 Delta 和 IY
local function scanForDelta()
    for _, gui in ipairs(CoreGui:GetChildren()) do
        -- A. 主面板容器
        if gui:IsA("ScreenGui") and gui.Name ~= "RobloxGui" and not gui:FindFirstChild("PrecisionBtn") then
            if gui:FindFirstChild("I") and gui:FindFirstChild("Y") then continue end -- 豁免 IY
            
            local isDelta = false
            for _, desc in ipairs(gui:GetDescendants()) do
                if (desc:IsA("ImageButton") or desc:IsA("ImageLabel")) and isDeltaAsset(desc.Image) then
                    isDelta = true; break
                end
            end
            
            if isDelta and not table.find(deltaContainers, gui) then
                table.insert(deltaContainers, gui)
            end
        end

        -- B. 悬浮按钮零件
        if gui:IsA("GuiObject") or gui:IsA("Folder") then
            for _, desc in ipairs(gui:GetDescendants()) do
                if (desc:IsA("ImageButton") or desc:IsA("ImageLabel")) and isDeltaAsset(desc.Image) then
                    if not table.find(deltaFloats, desc) then table.insert(deltaFloats, desc) end
                end
            end
        end
    end
end

-- // 3. 强制压制线程:只要锁开了,就没人能让 Delta 露头
task.spawn(function()
    while true do
        if isLockedHidden then
            -- 扫描新出现的或刷新的 Delta 元素
            scanForDelta()
            
            -- 强制压制容器
            for _, gui in ipairs(deltaContainers) do
                if gui and gui.Parent and gui.Enabled == true then
                    gui.Enabled = false
                end
            end
            
            -- 强制压制悬浮球
            for _, obj in ipairs(deltaFloats) do
                if obj and obj.Parent and obj.Visible == true then
                    obj.Visible = false
                    if obj:IsA("GuiButton") then obj.Active = false end
                end
            end
            
            -- 压制 Drawing 渲染层
            local dc = CoreGui:FindFirstChild("DrawingContainer")
            if dc and dc.Visible == true then dc.Visible = false end
        end
        task.wait(0.1) -- 100ms 高频检测,防止 UI 闪烁
    end
end)

-- // 4. 创建控制按钮
local Screen = Instance.new("ScreenGui")
Screen.Name = "Delta_Suppressor_V4"
Screen.IgnoreGuiInset = true
Screen.DisplayOrder = 9999999
Screen.Parent = CoreGui

local btn = Instance.new("TextButton")
btn.Name = "PrecisionBtn"
btn.Parent = Screen
btn.Position = UDim2.new(0, 20, 1, -80) 
btn.Size = UDim2.new(0, 60, 0, 60)
btn.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
btn.BackgroundTransparency = 0.4
btn.Text = "Δ"
btn.TextColor3 = Color3.new(1, 1, 1)
btn.Font = Enum.Font.GothamBold
btn.TextSize = 25
local corner = Instance.new("UICorner")
corner.CornerRadius = UDim.new(1, 0)
corner.Parent = btn

-- // 5. 切换逻辑
local function performToggle()
    isLockedHidden = not isLockedHidden 
    
    btn.BackgroundColor3 = isLockedHidden and Color3.fromRGB(255, 0, 0) or Color3.fromRGB(0, 0, 0)
    btn.Text = isLockedHidden and "OFF" or "Δ"
    
    -- 开启时手动推一次,关闭时手动恢复一次
    if not isLockedHidden then
        for _, gui in ipairs(deltaContainers) do if gui then gui.Enabled = true end end
        for _, obj in ipairs(deltaFloats) do if obj then obj.Visible = true; obj.Active = true end end
        local dc = CoreGui:FindFirstChild("DrawingContainer")
        if dc then dc.Visible = true end
        print("[系统] Delta 锁定已解除")
    else
        print("[系统] Delta 正在锁定隐藏中...")
    end
end

btn.MouseButton1Click:Connect(performToggle)
UserInputService.InputBegan:Connect(function(input)
    if input.KeyCode == Enum.KeyCode.F1 then performToggle() end
end)

Features & Information

Button Toggle Delta UI to hide or show (This may can fix some bug) Click Button or Key F1 to toggle delta UI to hide or show
#Hide Delta#Toggle Delta UI

Community Comments (1)

YepItsAtlasYepItsAtlasMay 17, 2026

ChatGPT🫩✌️

More Scripts for Universal Scripts