local frag = getgenv().fragESP local roots = {} local ok, hui = pcall(function() return gethui() end) if ok and hui then table.insert(roots, hui) end table.insert(roots, cloneref(game:GetService("CoreGui"))) local holder, panelGui for _, root in ipairs(roots) do for _, g in ipairs(root:GetChildren()) do if g.Name == "fragESP_Holder" then holder = g end if g.Name == "fragESP_Panel" then panelGui = g end end end print("holder:", holder ~= nil, "| panel:", panelGui ~= nil) local cam = workspace.CurrentCamera local target for _, p in ipairs(game:GetService("Players"):GetChildren()) do if p ~= game:GetService("Players").LocalPlayer and p.Character and p.Character:FindFirstChild("HumanoidRootPart") then target = p.Character.HumanoidRootPart end end if target then cam.CFrame = CFrame.new(target.Position + Vector3.new(0, 6, -18), target.Position) end local lib = getgenv().Library local function snap(tag) task.wait(0.2) local lt, fill, bars, txt = {}, {}, 0, {} for _, v in ipairs(holder:GetChildren()) do if v.Name == "LeftTop" and v.Visible then table.insert(lt, math.floor(v.Size.X.Offset)) end if v.Name == "Fill" and v.Visible then table.insert(fill, string.format("%dx%d@%.2f", v.Size.X.Offset, v.Size.Y.Offset, v.BackgroundTransparency)) end if v:IsA("Frame") and v.Name == "Frame" and v.Visible then bars += 1 end if v:IsA("TextLabel") and v.Visible then table.insert(txt, v.Name .. "=" .. v.Text) end end table.sort(lt); table.sort(fill) print(string.format("%-24s LeftTopW=%s Fill=%s bars=%d labels=%s", tag, tostring(lt[1]), tostring(fill[1]), bars, table.concat(txt, ","))) end lib.Registry["Box Type"].Set("Full"); snap("BoxType Full") lib.Registry["Box Type"].Set("Corner"); snap("BoxType Corner") lib.Registry["Fill Opacity"].Set(70); snap("Fill 70%") lib.Registry["Bar Width"].Set(5); snap("Bar width 5") lib.Registry["Health Bar"].Set(false); snap("Bars off") lib.Registry["Health Bar"].Set(true) lib.Registry["Show Held Item"].Set(false); snap("Held item off") lib.Registry["Show Held Item"].Set(true) lib.Registry["Visible Color"].Set(Color3.fromRGB(255, 0, 0)); snap("vis color red") lib.Registry["Max Distance"].Set(5); snap("maxdist 5") lib.Registry["Max Distance"].Set(1500) lib.Registry["Standalone Panel"].Set(true) print("panel visible:", panelGui.Panel.Visible) lib.Registry["Standalone Panel"].Set(false) print("panel hidden:", panelGui.Panel.Visible, "pill:", panelGui.Pill.Visible) lib.Registry["Box Type"].Set("Full") print("final:", frag.config.boxtype, frag.config.fillopacity, frag.config.barwidth, frag.config.textsize, frag.config.linegap, frag.config.visiblecolor)