Universal Script πŸ“Œ
881 Views
304 Executions

Fix Delta Sidebar

Universal Script πŸ“Œ
Ohmagic
OhmagicFirst script
11 months ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

I’m not totally sure if this works on every device, but it works on mine B). Some phones show this little sidebar line on the right side when you minimize delta, and it’s kinda annoying, so I wrote this simple script to fix it

View Raw
local cloneref=cloneref or clonereference or function(i)return i end
local cg=cloneref(game:GetService("CoreGui"))

local function w(f)
    local l,s,n=f.Position,0,.05
    repeat
        local c=f.Position
        s=c~=l and 0 or s+.05
        l=c
        task.wait(.05)
    until s>=n
end

local function g()
    for _,o in cg:GetDescendants()do
        if o.Name=="Sidebar"and o:IsA("Frame")then
            local p=o.Parent
            if p and p:FindFirstChild("Console")and p:FindFirstChild("Executor")and p:FindFirstChild("Home")and p:FindFirstChild("Scripthub")and p:FindFirstChild("Settings")then
                return o
            end
        end
    end
end

local b=g()
if b then
    b:GetPropertyChangedSignal("Position"):Connect(function()
        local p=b.Position
        if p.X.Scale>1 then
            task.spawn(function()
                w(b)
                if b.Parent and b.Position.X.Scale>1 then
                    b.Position=UDim2.new(1.1,0,p.Y.Scale,p.Y.Offset)
                end
            end)
        end
    end)
end


Comments

1
Log in to join the conversation. Login
viperr's profile picture
viperr11 months ago

works for iphone 14

1