local frag = getgenv().fragESP local lib = getgenv().Library local holder = frag.holder lib.Registry["Max Distance"].Set(5000) local function snap(tag) task.wait(0.45) local rows = {} for _, v in ipairs(holder:GetChildren()) do local p = v:GetAttribute("fragPlayer") if p and v.Visible then rows[p] = rows[p] or {parts = {}, corner = false} table.insert(rows[p].parts, v.Name) if v.Name == "LeftTop" then rows[p].topW = v.Size.X.Offset; rows[p].topX = v.Position.X.Offset end if v.Name == "LeftSide" then rows[p].sideH = v.Size.Y.Offset end if v.Name == "RightTop" then rows[p].corner = true end if v.Name == "RightSide" then rows[p].rightX = v.Position.X.Offset end if v.Name == "Distance" then rows[p].dist = v.Text end end end local corners, fulls = 0, 0 local detail = {} for p, r in pairs(rows) do local boxW = r.rightX and math.abs(r.rightX - r.topX) or 0 if r.corner then corners += 1 table.insert(detail, string.format("%s(%s) corner %dx%d in %dx%d", p, tostring(r.dist), r.topW, r.sideH, boxW, r.sideH and r.sideH or 0)) else fulls += 1 table.insert(detail, string.format("%s(%s) full %dx%d", p, tostring(r.dist), r.topW, r.sideH or 0)) end end table.sort(detail) print(string.format("%-8s boxes=%d corner=%d full=%d <- must match mode", tag, corners + fulls, corners, fulls)) for i = 1, math.min(#detail, 6) do print(" " .. detail[i]) end end lib.Registry["Box Type"].Set("Corner"); snap("Corner") lib.Registry["Box Type"].Set("Full"); snap("Full") lib.Registry["Box Type"].Set("Full") lib.Registry["Max Distance"].Set(1500)