local ok, hui = pcall(function() return gethui() end) local holders = {} for _, g in ipairs((hui or cloneref(game:GetService("CoreGui"))):GetChildren()) do if g.Name == "fragESP_Holder" then table.insert(holders, g) end end print("fragESP_Holder instances:", #holders) for i, h in ipairs(holders) do local visible, hidden = 0, 0 for _, v in ipairs(h:GetChildren()) do if v.Name == "LeftTop" then if v.Visible then visible += 1 else hidden += 1 end end end print(" holder", i, "children:", #h:GetChildren(), "LeftTop visible/hidden:", visible, hidden, "enabled:", h.Enabled) end local frag = getgenv().fragESP print("frag.holder is newest holder:", frag.holder == holders[#holders], "| config enabled:", frag.config.enabled, "maxdist:", frag.config.maxdist, "vischeck:", frag.config.visiblecheck) local cam = workspace.CurrentCamera local target for _, p in ipairs(game:GetService("Players"):GetChildren()) do if p ~= game:GetService("Players").LocalPlayer and p.Character then local r = p.Character:FindFirstChild("HumanoidRootPart") if r and (not target or (r.Position - cam.CFrame.Position).Magnitude < (target.r.Position - cam.CFrame.Position).Magnitude) then target = {p = p, r = r} end end end if target then cam.CFrame = CFrame.new(target.r.Position + Vector3.new(0, 3, -13), target.r.Position) task.wait(0.35) local char = target.p.Character local cf, sz = char:GetBoundingBox() print("target:", target.p.Name, "| bbox size:", tostring(sz), "| cf:", tostring(cf.Position)) local hp = cam:WorldToScreenPoint(cf.Position + Vector3.yAxis * (sz.Y / 2)) local fp = cam:WorldToScreenPoint(cf.Position - Vector3.yAxis * (sz.Y / 2)) local wp = cam:WorldToScreenPoint(cf.Position + cam.CFrame.RightVector * (math.max(sz.X, sz.Z) * 0.5)) print("head:", tostring(hp), "foot:", tostring(fp), "wide:", tostring(wp)) print("dist:", (cf.Position - cam.CFrame.Position).Magnitude) local vis = 0 for _, v in ipairs(frag.holder:GetChildren()) do if v.Name == "LeftTop" and v.Visible then vis += 1 end end print("visible boxes now:", vis) end