local frag = getgenv().fragESP local cg = cloneref(game:GetService("CoreGui")) local holder for _,g in ipairs(cg:GetChildren()) do if g.Name == "ESPHolder" then holder = g end end local function bars(tag) task.wait(0.15) local w = {} for _,v in ipairs(holder:GetChildren()) do if v:IsA("Frame") and v.Name == "Frame" and v.Visible then table.insert(w, math.floor(v.Size.X.Offset)) end end table.sort(w) print(tag, "visible bars:", #w, "widths:", table.concat(w, ",")) end frag.config.healthbar = true; frag.config.barwidth = 2; frag.ui.refresh(); bars("width 2 ->") frag.config.barwidth = 5; frag.ui.refresh(); bars("width 5 ->") frag.config.healthbar = false; frag.ui.refresh(); bars("off ->") frag.config.healthbar = true; frag.config.barwidth = 2; frag.ui.refresh() print("config now:", frag.config.boxtype, frag.config.textsize, frag.config.barwidth, frag.config.maxdist)