local frag = getgenv().fragESP local lib = getgenv().Library local holder = frag.holder local cam = workspace.CurrentCamera -- walk the camera close to the nearest player and confirm corner mode still brackets local nearest 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 nearest or d < nearest.d then nearest = {p = p, d = d} end end end if nearest then local r = nearest.p.Character.HumanoidRootPart cam.CFrame = CFrame.new(r.Position + Vector3.new(0, 1, -9), r.Position) task.wait(0.3) for _, v in ipairs(holder:GetChildren()) do if v:GetAttribute("fragPlayer") == nearest.p.Name and v.Visible and v.Name == "LeftTop" then local sideY = 0 for _, v2 in ipairs(holder:GetChildren()) do if v2:GetAttribute("fragPlayer") == nearest.p.Name and v2.Name == "LeftSide" then sideY = v2.Size.Y.Offset end end print(string.format("near target %s: topW=%d (boxW=%d) leftSideH=%d -> %s", nearest.p.Name, v.Size.X.Offset, v.Size.X.Offset, sideY, sideY < v.Size.X.Offset and "corner brackets" or "full box")) end end end lib.Registry["Box Type"].Set("Full") lib.Registry["Max Distance"].Set(1500) lib.Registry["Show Distance"].Set(false) lib.Registry["Show Held Item"].Set(false) print("defaults restored:", lib.Registry["Box Type"].Get(), lib.Registry["Max Distance"].Get())