-- mb esp v1 | masterbacon local plrs = game:GetService("Players") local uis = game:GetService("UserInputService") local ts = game:GetService("TweenService") local rs = game:GetService("RunService") local lt = game:GetService("Lighting") local cg = game:GetService("CoreGui") local lp = plrs.LocalPlayer local cam = workspace.CurrentCamera local pgui = lp:WaitForChild("PlayerGui") for _, p in ipairs({cg, pgui}) do if p:FindFirstChild("MB_ESP_V1") then p.MB_ESP_V1:Destroy() end end local th = { void = Color3.fromRGB(6, 12, 8), main = Color3.fromRGB(10, 18, 12), pnl = Color3.fromRGB(16, 28, 20), acc = Color3.fromRGB(50, 255, 110), acc2 = Color3.fromRGB(15, 120, 45), red = Color3.fromRGB(255, 30, 55), txt = Color3.fromRGB(240, 255, 245), sub = Color3.fromRGB(135, 180, 150), brd = Color3.fromRGB(35, 140, 65), line = Color3.fromRGB(20, 55, 30) } local ui = Instance.new("ScreenGui") ui.Name = "MB_ESP_V1" ui.ResetOnSpawn = false ui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling pcall(function() ui.Parent = cg end) if not ui.Parent then ui.Parent = pgui end local bbFolder = Instance.new("Folder", ui) bbFolder.Name = "Billboards" -- toggle btn local btn = Instance.new("ImageButton", ui) btn.Size = UDim2.fromOffset(46, 46) btn.Position = UDim2.new(0.04, 0, 0.22, 0) btn.BackgroundColor3 = th.void btn.BackgroundTransparency = 0.15 btn.BorderSizePixel = 0 btn.ZIndex = 1000 Instance.new("UICorner", btn).CornerRadius = UDim.new(1, 0) local tStroke = Instance.new("UIStroke", btn) tStroke.Thickness = 1.8 tStroke.Color = Color3.new(1, 1, 1) local sGrad = Instance.new("UIGradient", tStroke) sGrad.Color = ColorSequence.new({ColorSequenceKeypoint.new(0, th.acc), ColorSequenceKeypoint.new(0.5, th.acc2), ColorSequenceKeypoint.new(1, th.acc)}) local bGrad = Instance.new("UIGradient", btn) bGrad.Color = ColorSequence.new({ColorSequenceKeypoint.new(0, th.void), ColorSequenceKeypoint.new(1, th.pnl)}) task.spawn(function() local r = 0 while btn.Parent do local dt = task.wait(1/60) r = (r + dt * 90) % 360 sGrad.Rotation, bGrad.Rotation = r, (r + 180) % 360 end end) local tTxt = Instance.new("TextLabel", btn) tTxt.Size = UDim2.fromScale(1, 1) tTxt.BackgroundTransparency = 1 tTxt.Text = "ESP" tTxt.TextColor3 = th.acc tTxt.TextSize = 13 tTxt.Font = Enum.Font.GothamBlack local drg, dS, sP, dI btn.InputBegan:Connect(function(i) if i.UserInputType == Enum.UserInputType.MouseButton1 or i.UserInputType == Enum.UserInputType.Touch then drg, dS, sP = true, i.Position, btn.Position i.Changed:Connect(function() if i.UserInputState == Enum.UserInputState.End then drg = false end end) end end) btn.InputChanged:Connect(function(i) if i.UserInputType == Enum.UserInputType.MouseMovement or i.UserInputType == Enum.UserInputType.Touch then dI = i end end) uis.InputChanged:Connect(function(i) if i == dI and drg then local d = i.Position - dS btn.Position = UDim2.new(sP.X.Scale, sP.X.Offset + d.X, sP.Y.Scale, sP.Y.Offset + d.Y) end end) -- main local vp = cam.ViewportSize local main = Instance.new("Frame", ui) main.AnchorPoint = Vector2.new(0.5, 0.5) main.Position = UDim2.fromScale(0.5, 0.5) main.Size = UDim2.fromOffset(math.clamp(vp.X - 35, 390, 520), math.clamp(vp.Y - 45, 275, 345)) main.BackgroundColor3 = th.main main.BackgroundTransparency = 0.18 main.BorderSizePixel = 0 main.ClipsDescendants = true Instance.new("UICorner", main).CornerRadius = UDim.new(0, 8) local mStroke = Instance.new("UIStroke", main) mStroke.Color = th.brd mStroke.Thickness = 1.3 task.spawn(function() local t = 0 while main.Parent do local dt = task.wait(1/60) t = t + dt * 2.5 mStroke.Transparency = 0.2 + (math.sin(t) * 0.15) end end) local mScale = Instance.new("UIScale", main) local open = true local function setOpen(v) if v == nil then v = not open end open = v if open then main.Visible = true mScale.Scale = 0.85 ts:Create(mScale, TweenInfo.new(0.28, Enum.EasingStyle.Back, Enum.EasingDirection.Out), {Scale = 1}):Play() else local tw = ts:Create(mScale, TweenInfo.new(0.18, Enum.EasingStyle.Quart, Enum.EasingDirection.In), {Scale = 0.85}) tw:Play() tw.Completed:Connect(function() if not open then main.Visible = false end end) end end btn.MouseButton1Click:Connect(function() setOpen() end) -- header local hdr = Instance.new("Frame", main) hdr.Size = UDim2.new(1, 0, 0, 42) hdr.BackgroundColor3 = th.void hdr.BackgroundTransparency = 0.3 hdr.BorderSizePixel = 0 local wD, wS, wP, wI hdr.InputBegan:Connect(function(i) if i.UserInputType == Enum.UserInputType.MouseButton1 or i.UserInputType == Enum.UserInputType.Touch then wD, wS, wP = true, i.Position, main.Position i.Changed:Connect(function() if i.UserInputState == Enum.UserInputState.End then wD = false end end) end end) hdr.InputChanged:Connect(function(i) if i.UserInputType == Enum.UserInputType.MouseMovement or i.UserInputType == Enum.UserInputType.Touch then wI = i end end) uis.InputChanged:Connect(function(i) if i == wI and wD then local d = i.Position - wS main.Position = UDim2.new(wP.X.Scale, wP.X.Offset + d.X, wP.Y.Scale, wP.Y.Offset + d.Y) end end) local hTtl = Instance.new("TextLabel", hdr) hTtl.Position = UDim2.new(0, 14, 0, 5) hTtl.Size = UDim2.new(0.65, 0, 0, 18) hTtl.BackgroundTransparency = 1 hTtl.Text = "MB ESP v1" hTtl.TextColor3 = th.acc hTtl.TextSize = 14 hTtl.Font = Enum.Font.GothamBlack hTtl.TextXAlignment = Enum.TextXAlignment.Left local hSub = Instance.new("TextLabel", hdr) hSub.Position = UDim2.new(0, 14, 0, 23) hSub.Size = UDim2.new(0.65, 0, 0, 14) hSub.BackgroundTransparency = 1 hSub.Text = "by masterbacon" hSub.TextColor3 = th.sub hSub.TextSize = 10 hSub.Font = Enum.Font.GothamMedium hSub.TextXAlignment = Enum.TextXAlignment.Left local cls = Instance.new("TextButton", hdr) cls.AnchorPoint = Vector2.new(1, 0.5) cls.Position = UDim2.new(1, -12, 0.5, 0) cls.Size = UDim2.fromOffset(26, 26) cls.BackgroundColor3 = th.pnl cls.BackgroundTransparency = 0.3 cls.Text = "X" cls.TextColor3 = th.txt cls.TextSize = 12 cls.Font = Enum.Font.GothamBold cls.BorderSizePixel = 0 Instance.new("UICorner", cls).CornerRadius = UDim.new(0, 6) cls.MouseButton1Click:Connect(function() setOpen(false) end) local hLine = Instance.new("Frame", hdr) hLine.Size = UDim2.new(1, 0, 0, 1) hLine.Position = UDim2.new(0, 0, 1, -1) hLine.BackgroundColor3 = th.line hLine.BorderSizePixel = 0 local side = Instance.new("ScrollingFrame", main) side.Position = UDim2.new(0, 0, 0, 43) side.Size = UDim2.new(0, 115, 1, -43) side.BackgroundColor3 = th.void side.BackgroundTransparency = 0.4 side.BorderSizePixel = 0 side.ScrollBarThickness = 0 Instance.new("UIListLayout", side).Padding = UDim.new(0, 4) local sp = Instance.new("UIPadding", side) sp.PaddingTop, sp.PaddingLeft, sp.PaddingRight = UDim.new(0, 6), UDim.new(0, 6), UDim.new(0, 6) local sLine = Instance.new("Frame", main) sLine.Position = UDim2.new(0, 115, 0, 43) sLine.Size = UDim2.new(0, 1, 1, -43) sLine.BackgroundColor3 = th.line sLine.BorderSizePixel = 0 local cont = Instance.new("Frame", main) cont.Position = UDim2.new(0, 122, 0, 48) cont.Size = UDim2.new(1, -128, 1, -54) cont.BackgroundTransparency = 1 local tabs = {} local function makeTab(name) local pg = Instance.new("ScrollingFrame", cont) pg.Size = UDim2.fromScale(1, 1) pg.BackgroundTransparency = 1 pg.BorderSizePixel = 0 pg.ScrollBarThickness = 3 pg.ScrollBarImageColor3 = th.acc pg.Visible = false local lay = Instance.new("UIListLayout", pg) lay.Padding = UDim.new(0, 6) Instance.new("UIPadding", pg).PaddingRight = UDim.new(0, 6) lay:GetPropertyChangedSignal("AbsoluteContentSize"):Connect(function() pg.CanvasSize = UDim2.new(0, 0, 0, lay.AbsoluteContentSize.Y + 8) end) local tb = Instance.new("TextButton", side) tb.Size = UDim2.new(1, 0, 0, 30) tb.BackgroundColor3 = th.pnl tb.BackgroundTransparency = 1 tb.Text = " " .. name tb.TextColor3 = th.sub tb.TextSize = 11 tb.Font = Enum.Font.GothamMedium tb.TextXAlignment = Enum.TextXAlignment.Left tb.BorderSizePixel = 0 Instance.new("UICorner", tb).CornerRadius = UDim.new(0, 6) local pill = Instance.new("Frame", tb) pill.AnchorPoint = Vector2.new(0, 0.5) pill.Position = UDim2.new(0, 2, 0.5, 0) pill.Size = UDim2.fromOffset(3, 16) pill.BackgroundColor3 = th.acc pill.BorderSizePixel = 0 pill.Visible = false Instance.new("UICorner", pill).CornerRadius = UDim.new(1, 0) local t = {pg = pg, tb = tb, pill = pill} tb.MouseButton1Click:Connect(function() for _, v in ipairs(tabs) do v.pg.Visible = false v.tb.TextColor3 = th.sub v.tb.BackgroundTransparency = 1 v.pill.Visible = false end pg.Position = UDim2.new(0.04, 0, 0, 0) pg.Visible = true ts:Create(pg, TweenInfo.new(0.18, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), {Position = UDim2.new(0, 0, 0, 0)}):Play() tb.TextColor3 = th.acc tb.BackgroundTransparency = 0.35 pill.Visible = true end) table.insert(tabs, t) if #tabs == 1 then pg.Visible = true tb.TextColor3 = th.acc tb.BackgroundTransparency = 0.35 pill.Visible = true end local function toggle(txt, def, cb) local st = def or false local f = Instance.new("Frame", pg) f.Size = UDim2.new(1, 0, 0, 36) f.BackgroundColor3 = th.pnl f.BackgroundTransparency = 0.35 f.BorderSizePixel = 0 Instance.new("UICorner", f).CornerRadius = UDim.new(0, 6) local l = Instance.new("TextLabel", f) l.Position = UDim2.new(0, 10, 0, 0) l.Size = UDim2.new(0.68, 0, 1, 0) l.BackgroundTransparency = 1 l.Text = txt l.TextColor3 = th.txt l.TextSize = 11 l.Font = Enum.Font.GothamMedium l.TextXAlignment = Enum.TextXAlignment.Left local trk = Instance.new("TextButton", f) trk.AnchorPoint = Vector2.new(1, 0.5) trk.Position = UDim2.new(1, -8, 0.5, 0) trk.Size = UDim2.fromOffset(40, 20) trk.BackgroundColor3 = st and th.acc or th.void trk.Text = "" trk.BorderSizePixel = 0 Instance.new("UICorner", trk).CornerRadius = UDim.new(1, 0) local trkS = Instance.new("UIStroke", trk) trkS.Color = st and th.acc or th.brd local thm = Instance.new("Frame", trk) thm.AnchorPoint = Vector2.new(0, 0.5) thm.Position = st and UDim2.new(1, -17, 0.5, 0) or UDim2.new(0, 3, 0.5, 0) thm.Size = UDim2.fromOffset(14, 14) thm.BackgroundColor3 = Color3.new(1, 1, 1) thm.BorderSizePixel = 0 Instance.new("UICorner", thm).CornerRadius = UDim.new(1, 0) trk.MouseButton1Click:Connect(function() st = not st ts:Create(thm, TweenInfo.new(0.2, Enum.EasingStyle.Quart, Enum.EasingDirection.Out), { Position = st and UDim2.new(1, -17, 0.5, 0) or UDim2.new(0, 3, 0.5, 0) }):Play() ts:Create(trk, TweenInfo.new(0.2), {BackgroundColor3 = st and th.acc or th.void}):Play() trkS.Color = st and th.acc or th.brd pcall(cb, st) end) end local function slider(txt, min, max, def, cb) local val = def or min local f = Instance.new("Frame", pg) f.Size = UDim2.new(1, 0, 0, 46) f.BackgroundColor3 = th.pnl f.BackgroundTransparency = 0.35 f.BorderSizePixel = 0 Instance.new("UICorner", f).CornerRadius = UDim.new(0, 6) local l = Instance.new("TextLabel", f) l.Position = UDim2.new(0, 10, 0, 4) l.Size = UDim2.new(0.65, 0, 0, 16) l.BackgroundTransparency = 1 l.Text = txt l.TextColor3 = th.txt l.TextSize = 11 l.Font = Enum.Font.GothamMedium l.TextXAlignment = Enum.TextXAlignment.Left local vl = Instance.new("TextLabel", f) vl.AnchorPoint = Vector2.new(1, 0) vl.Position = UDim2.new(1, -10, 0, 4) vl.Size = UDim2.new(0.25, 0, 0, 16) vl.BackgroundTransparency = 1 vl.Text = tostring(val) vl.TextColor3 = th.acc vl.TextSize = 11 vl.Font = Enum.Font.GothamBold vl.TextXAlignment = Enum.TextXAlignment.Right local bb = Instance.new("Frame", f) bb.Position = UDim2.new(0, 10, 0, 26) bb.Size = UDim2.new(1, -20, 0, 8) bb.BackgroundColor3 = th.void bb.BorderSizePixel = 0 Instance.new("UICorner", bb).CornerRadius = UDim.new(1, 0) local fl = Instance.new("Frame", bb) fl.Size = UDim2.fromScale(math.clamp((val - min)/(max - min), 0, 1), 1) fl.BackgroundColor3 = th.acc fl.BorderSizePixel = 0 Instance.new("UICorner", fl).CornerRadius = UDim.new(1, 0) local isD = false local function upd(i) local pct = math.clamp((i.Position.X - bb.AbsolutePosition.X) / bb.AbsoluteSize.X, 0, 1) val = math.floor(min + ((max - min) * pct) + 0.5) fl.Size = UDim2.fromScale(pct, 1) vl.Text = tostring(val) pcall(cb, val) end bb.InputBegan:Connect(function(i) if i.UserInputType == Enum.UserInputType.MouseButton1 or i.UserInputType == Enum.UserInputType.Touch then isD = true upd(i) end end) uis.InputEnded:Connect(function(i) if i.UserInputType == Enum.UserInputType.MouseButton1 or i.UserInputType == Enum.UserInputType.Touch then isD = false end end) uis.InputChanged:Connect(function(i) if isD and (i.UserInputType == Enum.UserInputType.MouseMovement or i.UserInputType == Enum.UserInputType.Touch) then upd(i) end end) end return {toggle = toggle, slider = slider} end local tBox = makeTab("Boxes") local tBone = makeTab("Bones") local tInfo = makeTab("Info") local tWorld = makeTab("World") local espChams, box2d, headDot, rainbow = false, false, false, false local skeleton, tracers, centerTracer = false, false, false local nameESP, distESP, hpESP, teamCheck, arrows, maxDist = false, false, false, false, false, 1200 local function getCol() return rainbow and Color3.fromHSV((os.clock() * 0.4) % 1, 0.85, 1) or th.acc end local function applyHL(chr) if not chr then return end local hl = chr:FindFirstChild("MB_Chams") if espChams then if not hl then hl = Instance.new("Highlight") hl.Name = "MB_Chams" hl.FillColor = th.acc hl.OutlineColor = Color3.new(1, 1, 1) hl.FillTransparency = 0.45 hl.Parent = chr end else if hl then hl:Destroy() end end end local function refreshHL() for _, p in ipairs(plrs:GetPlayers()) do if p ~= lp and p.Character then applyHL(p.Character) end end end tBox.toggle("Player Chams", false, function(v) espChams = v refreshHL() end) tBox.toggle("2D Box", false, function(v) box2d = v end) tBox.toggle("Head Dot", false, function(v) headDot = v end) tBox.toggle("Rainbow", false, function(v) rainbow = v end) tBone.toggle("Skeleton", false, function(v) skeleton = v end) tBone.toggle("Tracers", false, function(v) tracers = v end) tBone.toggle("Center Tracers", false, function(v) centerTracer = v end) tInfo.toggle("Name", false, function(v) nameESP = v end) tInfo.toggle("Distance", false, function(v) distESP = v end) tInfo.toggle("Health Bar", false, function(v) hpESP = v end) tInfo.toggle("Offscreen Arrows", false, function(v) arrows = v end) tInfo.toggle("Team Check", false, function(v) teamCheck = v end) tInfo.slider("Max Distance", 100, 3000, 1200, function(v) maxDist = v end) local oldAmb, oldFog = lt.Ambient, lt.FogEnd tWorld.toggle("Fullbright", false, function(v) lt.Ambient = v and Color3.new(1, 1, 1) or oldAmb end) tWorld.toggle("No Fog", false, function(v) lt.FogEnd = v and 9e9 or oldFog end) tWorld.slider("Camera FOV", 70, 120, 70, function(v) cam.FieldOfView = v end) local function hookPlr(p) p.CharacterAdded:Connect(function(chr) task.wait(0.4) if espChams then applyHL(chr) end end) if p.Character then applyHL(p.Character) end end for _, p in ipairs(plrs:GetPlayers()) do if p ~= lp then hookPlr(p) end end plrs.PlayerAdded:Connect(hookPlr) task.spawn(function() while ui.Parent do task.wait(1.2) if espChams then for _, p in ipairs(plrs:GetPlayers()) do if p ~= lp and p.Character and not p.Character:FindFirstChild("MB_Chams") then applyHL(p.Character) end end end end end) local dc = {boxes = {}, skel = {}, trc = {}, dots = {}, arr = {}} local function nLine() if not Drawing then return nil end local l = Drawing.new("Line") l.Thickness, l.Color, l.Transparency, l.Visible = 1.4, th.acc, 1, false return l end local function nCirc(rad, col) if not Drawing then return nil end local c = Drawing.new("Circle") c.Radius, c.Filled, c.Color, c.Transparency, c.Visible = rad, true, col or th.acc, 1, false return c end local function nBox() if not Drawing then return nil end local q = Drawing.new("Square") q.Thickness, q.Filled, q.Color, q.Transparency, q.Visible = 1.4, false, th.acc, 1, false return q end local r15 = { {"Head","UpperTorso"},{"UpperTorso","LowerTorso"},{"UpperTorso","LeftUpperArm"},{"LeftUpperArm","LeftLowerArm"}, {"LeftLowerArm","LeftHand"},{"UpperTorso","RightUpperArm"},{"RightUpperArm","RightLowerArm"},{"RightLowerArm","RightHand"}, {"LowerTorso","LeftUpperLeg"},{"LeftUpperLeg","LeftLowerLeg"},{"LeftLowerLeg","LeftFoot"},{"LowerTorso","RightUpperLeg"}, {"RightUpperLeg","RightLowerLeg"},{"RightLowerLeg","RightFoot"} } local r6 = {{"Head","Torso"},{"Torso","Left Arm"},{"Torso","Right Arm"},{"Torso","Left Leg"},{"Torso","Right Leg"}} plrs.PlayerRemoving:Connect(function(p) for _, st in pairs(dc) do if st[p] then if type(st[p]) == "table" then for _, d in pairs(st[p]) do pcall(function() d:Remove() end) end else pcall(function() st[p]:Remove() end) end st[p] = nil end end local bb = bbFolder:FindFirstChild("MB_BB_" .. p.Name) if bb then bb:Destroy() end end) rs.RenderStepped:Connect(function() local col = getCol() local scCenter = Vector2.new(cam.ViewportSize.X / 2, cam.ViewportSize.Y / 2) local tStart = centerTracer and scCenter or Vector2.new(cam.ViewportSize.X / 2, cam.ViewportSize.Y) local myHrp = lp.Character and lp.Character:FindFirstChild("HumanoidRootPart") for _, p in ipairs(plrs:GetPlayers()) do if p ~= lp and p.Character then local char = p.Character local hrp, hum, head = char:FindFirstChild("HumanoidRootPart"), char:FindFirstChildOfClass("Humanoid"), char:FindFirstChild("Head") local valid = hrp and hum and hum.Health > 0 and head local allied = teamCheck and (p.Team ~= nil and p.Team == lp.Team) local dist = (myHrp and hrp) and (myHrp.Position - hrp.Position).Magnitude or 0 if valid and not allied and dist <= maxDist then local hrpPos, onScr = cam:WorldToViewportPoint(hrp.Position) local headPos = cam:WorldToViewportPoint(head.Position) if Drawing then if not dc.boxes[p] then dc.boxes[p] = nBox() end local box = dc.boxes[p] if box2d and onScr then local h = math.abs(hrpPos.Y - headPos.Y) * 2.8 local w = h * 0.65 box.Size, box.Position, box.Color, box.Visible = Vector2.new(w, h), Vector2.new(hrpPos.X - w/2, hrpPos.Y - h/2), col, true else box.Visible = false end if not dc.dots[p] then dc.dots[p] = nCirc(3.8, th.red) end local dot = dc.dots[p] if headDot and onScr then dot.Position, dot.Color, dot.Visible = Vector2.new(headPos.X, headPos.Y), th.red, true else dot.Visible = false end if not dc.trc[p] then dc.trc[p] = nLine() end local line = dc.trc[p] if tracers and onScr then line.From, line.To, line.Color, line.Visible = tStart, Vector2.new(hrpPos.X, hrpPos.Y), col, true else line.Visible = false end if not dc.skel[p] then dc.skel[p] = {} for i = 1, 15 do table.insert(dc.skel[p], nLine()) end end local bones = (char:FindFirstChild("UpperTorso") and r15) or r6 local lines = dc.skel[p] if skeleton and onScr then for i, pair in ipairs(bones) do local p1, p2, l = char:FindFirstChild(pair[1]), char:FindFirstChild(pair[2]), lines[i] if p1 and p2 and l then local pos1, v1 = cam:WorldToViewportPoint(p1.Position) local pos2, v2 = cam:WorldToViewportPoint(p2.Position) if v1 and v2 then l.From, l.To, l.Color, l.Visible = Vector2.new(pos1.X, pos1.Y), Vector2.new(pos2.X, pos2.Y), col, true else l.Visible = false end elseif l then l.Visible = false end end else for _, l in ipairs(lines) do l.Visible = false end end if not dc.arr[p] then dc.arr[p] = nCirc(4.5, th.acc) end local arr = dc.arr[p] if arrows and not onScr then local rel = (hrp.Position - cam.CFrame.Position).Unit local ang = math.atan2(rel:Dot(cam.CFrame.RightVector), rel:Dot(cam.CFrame.UpVector)) local r = math.min(cam.ViewportSize.X, cam.ViewportSize.Y) * 0.4 arr.Position, arr.Color, arr.Visible = scCenter + Vector2.new(math.sin(ang)*r, -math.cos(ang)*r), col, true else arr.Visible = false end end else if dc.boxes[p] then dc.boxes[p].Visible = false end if dc.dots[p] then dc.dots[p].Visible = false end if dc.trc[p] then dc.trc[p].Visible = false end if dc.arr[p] then dc.arr[p].Visible = false end if dc.skel[p] then for _, l in ipairs(dc.skel[p]) do l.Visible = false end end end end end end) task.spawn(function() while ui.Parent do task.wait(0.2) local myHrp = lp.Character and lp.Character:FindFirstChild("HumanoidRootPart") for _, p in ipairs(plrs:GetPlayers()) do if p ~= lp and p.Character then local head, hum, hrp = p.Character:FindFirstChild("Head"), p.Character:FindFirstChildOfClass("Humanoid"), p.Character:FindFirstChild("HumanoidRootPart") local allied = teamCheck and (p.Team ~= nil and p.Team == lp.Team) local bb = bbFolder:FindFirstChild("MB_BB_" .. p.Name) if head and hum and hrp and myHrp and not allied and hum.Health > 0 then local dist = math.floor((myHrp.Position - hrp.Position).Magnitude) if (nameESP or distESP or hpESP) and dist <= maxDist then if not bb then bb = Instance.new("BillboardGui", bbFolder) bb.Name = "MB_BB_" .. p.Name bb.Adornee = head bb.Size = UDim2.fromOffset(150, 32) bb.StudsOffset = Vector3.new(0, 2.6, 0) bb.AlwaysOnTop = true bb.ResetOnSpawn = false local tl = Instance.new("TextLabel", bb) tl.Name = "Label" tl.Size = UDim2.new(1, 0, 0, 16) tl.BackgroundTransparency = 1 tl.TextColor3 = th.acc tl.TextSize = 11 tl.Font = Enum.Font.GothamBold local s = Instance.new("UIStroke", tl) s.Color, s.Thickness = Color3.new(0, 0, 0), 1.3 local hBack = Instance.new("Frame", bb) hBack.Name = "HealthBack" hBack.Position = UDim2.new(0.12, 0, 0, 19) hBack.Size = UDim2.new(0.76, 0, 0, 4) hBack.BackgroundColor3 = Color3.fromRGB(15, 15, 15) hBack.BorderSizePixel = 0 Instance.new("UICorner", hBack).CornerRadius = UDim.new(1, 0) local hFill = Instance.new("Frame", hBack) hFill.Name = "HealthFill" hFill.Size = UDim2.fromScale(1, 1) hFill.BackgroundColor3 = th.acc hFill.BorderSizePixel = 0 Instance.new("UICorner", hFill).CornerRadius = UDim.new(1, 0) else bb.Adornee = head end if bb:FindFirstChild("Label") then local txt = {} if nameESP then table.insert(txt, p.DisplayName) end if distESP then table.insert(txt, "[" .. tostring(dist) .. "m]") end bb.Label.Text = table.concat(txt, " ") bb.Label.Visible = #txt > 0 end if bb:FindFirstChild("HealthBack") then bb.HealthBack.Visible = hpESP local fill = bb.HealthBack:FindFirstChild("HealthFill") if fill then local pct = math.clamp(hum.Health / math.max(hum.MaxHealth, 1), 0, 1) fill.Size = UDim2.fromScale(pct, 1) fill.BackgroundColor3 = Color3.fromRGB(255, 30, 40):Lerp(th.acc, pct) end end else if bb then bb:Destroy() end end else if bb then bb:Destroy() end end end end end end) print("mb esp v1 loaded")