-- Robscript Team - Bad Business ESP -- Game: Bad Business | placeId 3233893879 | gameId 1168263273 -- Window: RightControl | Panic: End | API: getgenv().RobScriptBB -- Bodies live in workspace.Characters as custom rigs; Player.Character is an empty Proxy model. local Players = game:GetService("Players") local RunService = game:GetService("RunService") local UserInputService = game:GetService("UserInputService") local LocalPlayer = Players.LocalPlayer -- Unload a previous copy so its loop, highlights and window die first. do local existing = getgenv().RobScriptBB if type(existing) == "table" and type(existing.Destroy) == "function" then pcall(existing.Destroy) end end ----- Library ----- local LIBRARY_URLS = { "https://raw.githubusercontent.com/bobloscript/Robly_Airflow/main/Source.luau", "https://raw.githubusercontent.com/PookiePepelsss/Airflow-UI/refs/heads/main/Source.luau", } local Airflow for _, url in ipairs(LIBRARY_URLS) do local ok, library = pcall(function() return loadstring(game:HttpGet(url))() end) if ok and type(library) == "table" and type(library.CreateWindow) == "function" then Airflow = library break end end if not Airflow then error("[RobScript BB] Airflow UI could not be loaded") end ----- Theme ----- local THEME = { Background = Color3.fromHex("#0A0A0C"), Surface = Color3.fromHex("#141418"), Surface2 = Color3.fromHex("#1A1A20"), Surface3 = Color3.fromHex("#2A2A33"), Stroke = Color3.fromHex("#26262E"), StrokeHover = Color3.fromHex("#3C3C49"), Accent = Color3.fromHex("#FF3B7F"), AccentDark = Color3.fromHex("#1A0710"), Text = Color3.fromHex("#F5F5F7"), Muted = Color3.fromHex("#8D8D99"), } Airflow.ThemePresets.Robscript = THEME Airflow:SetDefaultTheme(THEME) ----- Language ----- Airflow:AddLanguage("ru", { Name = "Русский", Flag = "ru", Strings = { ["chams, colors, settings"] = "чамсы, цвета, настройки", ["Visuals"] = "Визуал", ["Settings"] = "Настройки", ["Players"] = "Игроки", ["Appearance"] = "Внешний вид", ["Configs"] = "Конфиги", ["Theme"] = "Тема", ["Maintenance"] = "Обслуживание", ["Chams"] = "Чамсы", ["Highlight enemy bodies through walls"] = "Подсвечивать тела врагов сквозь стены", ["Enemies only"] = "Только враги", ["Skip bodies the game marks as teammates"] = "Пропускать тела, которые игра помечает как союзников", ["Range"] = "Дальность", ["# studs"] = "# стадов", ["Max highlights"] = "Максимум подсветок", ["Roblox draws 31 highlights at once"] = "Roblox рисует не больше 31 подсветки одновременно", ["Fill"] = "Заливка", ["Fill opacity"] = "Прозрачность заливки", ["Outline"] = "Обводка", ["Outline opacity"] = "Прозрачность обводки", ["Through walls"] = "Сквозь стены", ["Always on top of geometry"] = "Рисовать поверх геометрии", ["Reset appearance"] = "Сбросить вид", ["Highlighted"] = "Подсвечено", ["Skipped allies"] = "Пропущено союзников", ["# bodies"] = "тел: #", ["Unload"] = "Выгрузить", ["Activity"] = "Активность", ["Chams enabled"] = "Чамсы включены", ["Chams disabled"] = "Чамсы выключены", ["Appearance reset"] = "Вид сброшен", ["Unloaded"] = "Выгружено", ["Loaded"] = "Загружено", ["Bad Business ESP is ready"] = "Bad Business ESP готов", ["Panic key pressed, chams off"] = "Нажата паника, чамсы выключены", }, }) ----- Window ----- local Window = Airflow:CreateWindow({ Name = "Bad Business ESP", LoadingSubtitle = "chams, colors, settings", ToggleUIKeybind = "RightControl", Size = UDim2.fromOffset(780, 540), Backdrop = { Weather = "Fireflies", Tint = 0.35 }, Theme = THEME, ConfigurationSaving = { Enabled = true, FolderName = "RobScriptBB" }, Home = { Title = "Bad Business ESP", Welcome = "Welcome back,", Tier = "v1.0", Stats = { "Players", "Session", "FPS", "Ping", "Game", "Executor" }, }, }) ----- State ----- local State = { highlighted = 0, teammates = 0, candidates = 0, draws = 0, } local HIGHLIGHT_NAME = "RobScriptChams" local SELF_RADIUS = 2.5 local TEAMMATE_CACHE_TIME = 30 local highlights = {} local teammateCache = {} -- UI handles are declared first because the engine reads them from the loop. local ChamsToggle local EnemiesOnlyToggle local RangeSlider local BudgetSlider local FillColorPicker local FillOpacitySlider local OutlineColorPicker local OutlineOpacitySlider local DepthToggle local ActivityLog local connections = {} -- The log lives on the Settings tab, which is built after the first controls: -- callbacks fired during construction must not touch a missing handle. local function pushLog(text) if not ActivityLog then return end ActivityLog:Push(text) end local function readFlag(handle, fallback) if not handle then return fallback end local ok, value = pcall(function() if type(handle.Get) == "function" then return handle:Get() end return handle.Value end) if ok and value ~= nil then return value end return fallback end ----- Helpers ----- local function rigFolder() local folder = workspace:FindFirstChild("Characters") if folder and #folder:GetChildren() > 0 then return folder end return nil end local function bodyRoot(model) return model:FindFirstChild("Root") or model:FindFirstChild("HumanoidRootPart") end local function modelFromAdornee(adornee) local folder = workspace:FindFirstChild("Characters") if not adornee or not folder then return nil end local node = adornee while node and node.Parent ~= folder do node = node.Parent end if node and node:IsA("Model") then return node end return nil end -- The game puts its own nameplate on every ally head, so anything carrying one -- of those billboards is a teammate and never gets chams. local function collectTeammates() local teammates = {} local playerGui = LocalPlayer:FindFirstChild("PlayerGui") if playerGui then local containers = { playerGui } for _, child in playerGui:GetChildren() do if child:IsA("ScreenGui") then table.insert(containers, child) end end for _, container in containers do for _, gui in container:GetChildren() do if gui:IsA("BillboardGui") and gui.Adornee then local model = modelFromAdornee(gui.Adornee) if model then teammates[model] = true end end end end end if LocalPlayer.Team then for _, player in Players:GetPlayers() do if player ~= LocalPlayer and player.Team == LocalPlayer.Team and player.Character then teammates[player.Character] = true end end end return teammates end local function resolveTeammates() local now = os.clock() local resolved = {} for model in pairs(teammateCache) do if not model.Parent then teammateCache[model] = nil end end for model in pairs(collectTeammates()) do teammateCache[model] = now end for model, stamp in pairs(teammateCache) do if now - stamp <= TEAMMATE_CACHE_TIME then resolved[model] = true else teammateCache[model] = nil end end return resolved end local function isSelf(model, folderMode) if model == LocalPlayer.Character then return true end if not folderMode then return false end local root = bodyRoot(model) if not root then return false end local camera = workspace.CurrentCamera return (root.Position - camera.CFrame.Position).Magnitude < SELF_RADIUS end ----- Chams engine ----- local function removeChams(model) local highlight = highlights[model] if highlight then highlight:Destroy() highlights[model] = nil end end local function clearChams() for model in pairs(highlights) do removeChams(model) end State.highlighted = 0 end local function applyChams(model, settings) local highlight = highlights[model] if not highlight or not highlight.Parent then highlights[model] = nil highlight = Instance.new("Highlight") highlight.Name = HIGHLIGHT_NAME highlight:SetAttribute("RobScriptBB", true) highlight.Adornee = model highlight.Parent = model highlights[model] = highlight end highlight.FillColor = settings.fill highlight.FillTransparency = settings.fillTransparency highlight.OutlineColor = settings.outline highlight.OutlineTransparency = settings.outlineTransparency highlight.DepthMode = settings.throughWalls and Enum.HighlightDepthMode.AlwaysOnTop or Enum.HighlightDepthMode.Occluded end local function collectCandidates(folderMode, teammates, range) local camera = workspace.CurrentCamera local candidates = {} if folderMode then for _, model in workspace.Characters:GetChildren() do if model:IsA("Model") and bodyRoot(model) then local root = bodyRoot(model) local distance = (root.Position - camera.CFrame.Position).Magnitude if distance <= range and not teammates[model] and not isSelf(model, folderMode) then table.insert(candidates, { model = model, distance = distance }) end end end else for _, player in Players:GetPlayers() do if player ~= LocalPlayer and player.Character then local root = player.Character:FindFirstChild("HumanoidRootPart") if root then local distance = (root.Position - camera.CFrame.Position).Magnitude if distance <= range and not teammates[player.Character] then table.insert(candidates, { model = player.Character, distance = distance }) end end end end end table.sort(candidates, function(first, second) return first.distance < second.distance end) return candidates end local function reconcile() if not readFlag(ChamsToggle, false) then clearChams() State.candidates = 0 return end local folderMode = rigFolder() ~= nil local range = readFlag(RangeSlider, 500) local budget = math.floor(readFlag(BudgetSlider, 28)) local enemiesOnly = readFlag(EnemiesOnlyToggle, true) local teammates = {} if enemiesOnly then teammates = resolveTeammates() end local settings = { fill = readFlag(FillColorPicker, Color3.fromRGB(255, 55, 55)), fillTransparency = readFlag(FillOpacitySlider, 35) / 100, outline = readFlag(OutlineColorPicker, Color3.fromRGB(255, 255, 255)), outlineTransparency = readFlag(OutlineOpacitySlider, 20) / 100, throughWalls = readFlag(DepthToggle, true), } local candidates = collectCandidates(folderMode, teammates, range) State.candidates = #candidates State.teammates = 0 for _ in pairs(teammates) do State.teammates += 1 end local keep = {} for index, candidate in ipairs(candidates) do if index > budget then break end keep[candidate.model] = true applyChams(candidate.model, settings) end for model in pairs(highlights) do if not keep[model] or not model.Parent then removeChams(model) end end local count = 0 for _ in pairs(highlights) do count += 1 end State.highlighted = count State.draws = count end ----- Interface ----- local VisualsTab = Window:CreateTab({ Name = "Visuals", Icon = "eye" }) local PlayersBox = VisualsTab:CreateGroupbox({ Name = "Players", Side = "Left" }) local LookBox = VisualsTab:CreateGroupbox({ Name = "Appearance", Side = "Right" }) ChamsToggle = PlayersBox:CreateToggle({ Name = "Chams", Desc = "Highlight enemy bodies through walls", Flag = "ChamsEnabled", CurrentValue = true, Callback = function(enabled) if enabled then pushLog("Chams enabled") else pushLog("Chams disabled") clearChams() end task.spawn(reconcile) end, }) EnemiesOnlyToggle = PlayersBox:CreateToggle({ Name = "Enemies only", Desc = "Skip bodies the game marks as teammates", Flag = "ChamsEnemiesOnly", CurrentValue = true, DependsOn = "ChamsEnabled", Callback = function() task.spawn(reconcile) end, }) RangeSlider = PlayersBox:CreateSlider({ Name = "Range", Range = { 50, 1500 }, Increment = 50, Suffix = " studs", CurrentValue = 500, Flag = "ChamsRange", DependsOn = "ChamsEnabled", Callback = function() task.spawn(reconcile) end, }) BudgetSlider = PlayersBox:CreateSlider({ Name = "Max highlights", Desc = "Roblox draws 31 highlights at once", Range = { 4, 31 }, Increment = 1, CurrentValue = 28, Flag = "ChamsBudget", DependsOn = "ChamsEnabled", Callback = function() task.spawn(reconcile) end, }) PlayersBox:CreateStatus({ Name = "Highlighted", Style = "Row", Pin = true, UpdateRate = 0.5, Update = function() if not readFlag(ChamsToggle, false) then return "0" end return ("%d bodies"):format(State.highlighted) end, }) PlayersBox:CreateStatus({ Name = "Skipped allies", Style = "Row", UpdateRate = 0.5, Update = function() return ("%d bodies"):format(State.teammates) end, }) FillColorPicker = LookBox:CreateColorPicker({ Name = "Fill", Color = Color3.fromRGB(255, 55, 55), Flag = "ChamsFill", Callback = function() task.spawn(reconcile) end, }) FillOpacitySlider = LookBox:CreateSlider({ Name = "Fill opacity", Range = { 0, 100 }, Increment = 5, Suffix = "%", CurrentValue = 35, Flag = "ChamsFillOpacity", Callback = function() task.spawn(reconcile) end, }) OutlineColorPicker = LookBox:CreateColorPicker({ Name = "Outline", Color = Color3.fromRGB(255, 255, 255), Flag = "ChamsOutline", Callback = function() task.spawn(reconcile) end, }) OutlineOpacitySlider = LookBox:CreateSlider({ Name = "Outline opacity", Range = { 0, 100 }, Increment = 5, Suffix = "%", CurrentValue = 20, Flag = "ChamsOutlineOpacity", Callback = function() task.spawn(reconcile) end, }) DepthToggle = LookBox:CreateToggle({ Name = "Through walls", Desc = "Always on top of geometry", Flag = "ChamsThroughWalls", CurrentValue = true, Callback = function() task.spawn(reconcile) end, }) LookBox:CreateButton({ Name = "Reset appearance", Icon = "rotate-ccw", Callback = function() FillColorPicker:Set(Color3.fromRGB(255, 55, 55), true) FillOpacitySlider:Set(35, true) OutlineColorPicker:Set(Color3.fromRGB(255, 255, 255), true) OutlineOpacitySlider:Set(20, true) DepthToggle:Set(true, true) pushLog("Appearance reset") task.spawn(reconcile) end, }) local SettingsTab = Window:CreateTab({ Name = "Settings", Icon = "settings" }) local ConfigBox = SettingsTab:CreateGroupbox({ Name = "Configs", Side = "Left" }) local ThemeBox = SettingsTab:CreateGroupbox({ Name = "Theme", Side = "Right" }) local ServiceBox = SettingsTab:CreateGroupbox({ Name = "Maintenance", Side = "Left" }) ConfigBox:CreateConfigManager({ Name = "Configs" }) ThemeBox:CreateThemeManager({ Name = "Theme" }) ActivityLog = ServiceBox:CreateLog({ Name = "Activity", MaxEntries = 200, MaxRows = 8, Timestamps = true, }) local destroy ServiceBox:CreateButton({ Name = "Unload", Icon = "power", Style = "Primary", Confirm = true, Callback = function() pushLog("Unloaded") task.delay(0.2, destroy) end, }) ----- Runtime ----- local accumulator = 0 table.insert(connections, RunService.Heartbeat:Connect(function(deltaTime) accumulator += deltaTime if accumulator < 0.2 then return end accumulator = 0 reconcile() end)) table.insert(connections, UserInputService.InputBegan:Connect(function(input, gameProcessed) if gameProcessed or input.KeyCode ~= Enum.KeyCode.End then return end if readFlag(ChamsToggle, false) then ChamsToggle:Set(false) pushLog("Panic key pressed, chams off") end end)) destroy = function() for _, connection in ipairs(connections) do connection:Disconnect() end table.clear(connections) clearChams() table.clear(teammateCache) pcall(function() Window:Destroy() end) getgenv().RobScriptBB = nil end getgenv().RobScriptBB = { Destroy = destroy, SetEnabled = function(enabled) ChamsToggle:Set(enabled == true) end, IsEnabled = function() return readFlag(ChamsToggle, false) end, State = State, } Window:LoadAutoload() Window:Notify({ Title = "Loaded", Content = "Bad Business ESP is ready", Type = "Success" }) reconcile()