local frag = getgenv().fragESP local lib = getgenv().Library local ok, hui = pcall(function() return gethui() end) local holder for _, g in ipairs((hui or cloneref(game:GetService("CoreGui"))):GetChildren()) do if g.Name == "fragESP_Holder" then holder = g end end -- put the camera 14 studs behind the closest player local cam = workspace.CurrentCamera local best, bestD for _, p in ipairs(game:GetService("Players"):GetChildren()) do if p ~= game:GetService("Players").LocalPlayer and p.Character and p.Character:FindFirstChild("HumanoidRootPart") then local d = (p.Character.HumanoidRootPart.Position - cam.CFrame.Position).Magnitude if not bestD or d < bestD then best, bestD = p.Character.HumanoidRootPart, d end end end if best then cam.CFrame = CFrame.new(best.Position + Vector3.new(0, 4, -14), best.Position) end task.wait(0.3) local function snap(tag) task.wait(0.2) local lt, rt, fill, colors = nil, 0, nil, {} for _, v in ipairs(holder:GetChildren()) do if v.Name == "LeftTop" and v.Visible then lt = math.floor(v.Size.X.Offset); table.insert(colors, tostring(v.BackgroundColor3)) end if v.Name == "RightTop" and v.Visible then rt += 1 end if v.Name == "Fill" and v.Visible then fill = string.format("%dx%d", v.Size.X.Offset, v.Size.Y.Offset) end end print(string.format("%-22s LeftTopW=%s RightTop=%d Fill=%s color=%s", tag, tostring(lt), rt, tostring(fill), colors[1] or "-")) end snap("close, Full") lib.Registry["Box Type"].Set("Corner"); snap("close, Corner") lib.Registry["Box Type"].Set("Full") lib.Registry["Fill Opacity"].Set(45); snap("fill 45%") lib.Registry["Visible Color"].Set({color = "#FF0000", alpha = 1}); snap("vis color -> red") print("config.visiblecolor:", frag.config.visiblecolor) lib.Registry["Hidden Color"].Set({color = "#00FFFF", alpha = 1}) lib.Registry["Visible Check"].Set(false); snap("vischeck off") lib.Registry["Visible Check"].Set(true) lib.Registry["Text Size"].Set(15); snap("text 15") lib.Registry["Fill Opacity"].Set(25) lib.Registry["Text Size"].Set(11) print("done:", frag.config.boxtype, frag.config.fillopacity, frag.config.visiblecolor, frag.config.hiddencolor)