-- [[ Rscripts Risk Notice ]] -- This script is not verified by rscripts.net. Deal with caution. -- -- Stay safe: -- • Never log in on unofficial Roblox sites or lookalike domains. -- • Real Roblox links use roblox.com (check the .com ending). -- • Treat fake Roblox login / "claim reward" pages as phishing. -- [[ End Rscripts Risk Notice ]] --[[ Made by Stizzyyy · https://rscripts.net/@Stizzyyy My scripts are ALWAYS free and keyless. If you find my features or code behind a key system, it's a stolen re-upload, not mine. ]] --[[ Mechanic Legends Hub · PC + mobile RightShift = show/hide menu · F6 = stop every automation Teleports + spawn your car, junkyard ESP (price, profit, condition, best pick) + sniper with server hop, customer jobs (pick by pay, auto accept, order parts, collect deliveries, hand over), no engine damage, infinite fuel, car mods (power, top speed, grip, brakes, steering), player ESP, sky changer, FPS boost, codes, session stats, anti-AFK. ]] if game.GameId ~= 9979684281 then return end -- Mechanic Legends only if not game:IsLoaded() then game.Loaded:Wait() end local G = getgenv() if G.MLH and G.MLH.Unload then pcall(G.MLH.Unload) end local H = {conns = {}, insts = {}, alive = true} G.MLH = H function H.Unload() H.alive = false for _, c in ipairs(H.conns) do pcall(c.Disconnect, c) end for _, i in ipairs(H.insts) do pcall(i.Destroy, i) end end -- replaced once fully loaded local Players = game:GetService("Players") local UIS = game:GetService("UserInputService") local TS = game:GetService("TweenService") local Http = game:GetService("HttpService") local RS = game:GetService("ReplicatedStorage") local RunS = game:GetService("RunService") local Lighting = game:GetService("Lighting") while not Players.LocalPlayer do task.wait() end local LP = Players.LocalPlayer local okHui, HUI = pcall(function() return gethui and gethui() end) if not (okHui and HUI) then HUI = game:GetService("CoreGui") end local function conn(sig, f) local c = sig:Connect(function(...) pcall(f, ...) end) H.conns[#H.conns + 1] = c return c end local function inst(cls, p, parent) local i = Instance.new(cls) for k, v in pairs(p or {}) do i[k] = v end if parent then i.Parent = parent end return i end local function loop(dt, f) task.spawn(function() while H.alive do local ok, e = xpcall(f, debug.traceback) if not ok then H.lastErr = e end task.wait(dt) end end) end local S = { JobPick = "Highest pay", JobMinPay = 0, AutoAccept = false, AutoOrder = false, AutoCollect = false, AutoComplete = false, AutoWork = false, JobPace = 3, TrashScrapped = false, JunkESP = true, JunkMinProfit = 0, JunkAffordable = false, Snipe = false, SnipeMinProfit = 1000, SnipeMaxPrice = 30000, SnipeReserve = 0, SnipeHop = false, AutoFlip = false, FlipMinProfit = 1500, FlipReserve = 0, NoDamage = false, InfFuel = false, ModsOn = false, Power = 1, TopSpeed = 1, Grip = 1, Brakes = 1, Steer = 1, PlayerESP = false, DriversOnly = false, ESPSelf = false, Sky = "Game", FPSBoost = "Off", AutoCodes = true, AntiAFK = true, Notify = true, FPSCap = 0, No3D = false, ReloadTP = true, } local CFG = "MLHub.json" pcall(function() local t = Http:JSONDecode(readfile(CFG)) for k, v in pairs(t) do if S[k] ~= nil and type(v) == type(S[k]) then S[k] = v end end end) H.S = S local function save() pcall(function() writefile(CFG, Http:JSONEncode(S)) end) end local C = {} local PRESETS = { {name = "Claude Glass", bg = "141311", side = "1E1C1A", card = "2A2724", stroke = "4A453F", text = "F2EEE6", muted = "9A948A", primary = "D97757", secondary = "F2B880"}, {name = "ChatGPT / Codex", bg = "0D0D0D", side = "171717", card = "212121", stroke = "3A3A3A", text = "ECECEC", muted = "8E8EA0", primary = "10A37F", secondary = "74AA9C"}, {name = "Solara", bg = "0E0B16", side = "161224", card = "201A33", stroke = "3B3157", text = "F1EEFA", muted = "A39BBF", primary = "9D5CFF", secondary = "5B8CFF"}, {name = "Discord", bg = "1E1F22", side = "2B2D31", card = "313338", stroke = "45474E", text = "F2F3F5", muted = "B5BAC1", primary = "5865F2", secondary = "EB459E"}, {name = "Netflix", bg = "0B0B0B", side = "141414", card = "1F1F1F", stroke = "363636", text = "FFFFFF", muted = "B3B3B3", primary = "E50914", secondary = "B81D24"}, {name = "Grok", bg = "000000", side = "0A0A0A", card = "151515", stroke = "2F2F2F", text = "FFFFFF", muted = "8B8B8B", primary = "E7E9EA", secondary = "6E6E6E"}, } local THEME_FILE = "StizzyyyUI.json" local TH = {preset = "Claude Glass", glass = 20} pcall(function() local t = Http:JSONDecode(readfile(THEME_FILE)) for k, v in pairs(t) do TH[k] = v end end) TH.glass = math.clamp(tonumber(TH.glass) or 20, 20, 45) -- below 20% the glass loses its depth local function presetOf(n) for _, p in ipairs(PRESETS) do if p.name == n then return p end end return PRESETS[1] end local function hex(h) local ok, c = pcall(Color3.fromHex, tostring(h or "")) return ok and c or nil end local function loadTheme() local p = presetOf(TH.preset) for _, k in ipairs({"bg", "side", "card", "stroke", "text", "muted"}) do C[k] = hex(p[k]) end C.clay = hex(TH.primary) or hex(p.primary) C.accent2 = hex(TH.secondary) or hex(p.secondary) C.primary, C.secondary = C.clay, C.accent2 end loadTheme() local WHITE = Color3.new(1, 1, 1) local function face(w) return Font.new("rbxasset://fonts/families/Montserrat.json", w or Enum.FontWeight.Regular) end local MED, SEMI, BOLD = Enum.FontWeight.Medium, Enum.FontWeight.SemiBold, Enum.FontWeight.Bold local themed, painters = {}, {} local function th(i, prop, role) themed[#themed + 1] = {i, prop, role} i[prop] = C[role] return i end local function painter(f) painters[#painters + 1] = f f() return f end local grads = {} local function accentGrad(parent, rot) local g = inst("UIGradient", {Rotation = rot or 0, Color = ColorSequence.new(C.clay, C.accent2)}, parent) grads[#grads + 1] = g return g end local glassParts = {} -- {instance, extra transparency} local function glassy(i, extra) glassParts[#glassParts + 1] = {i, extra or 0} i.BackgroundTransparency = math.clamp(TH.glass / 100 + (extra or 0), 0, 0.95) return i end local Gui = inst("ScreenGui", {Name = "MLHub" .. math.random(1e5, 1e6), ResetOnSpawn = false, ZIndexBehavior = Enum.ZIndexBehavior.Sibling, DisplayOrder = 50}, HUI) H.insts[#H.insts + 1] = Gui local function corner(p, r) inst("UICorner", {CornerRadius = r == "pill" and UDim.new(1, 0) or UDim.new(0, r or 8)}, p) end local function stroke(p, c) local s = inst("UIStroke", {Color = c or C.stroke, Thickness = 1, ApplyStrokeMode = Enum.ApplyStrokeMode.Border, Transparency = 0.25}, p) if not c then themed[#themed + 1] = {s, "Color", "stroke"} end return s end local function rim(p, t) return inst("UIStroke", {Color = WHITE, Thickness = 1, ApplyStrokeMode = Enum.ApplyStrokeMode.Border, Transparency = t or 0.8}, p) end local function liquid(p, strong) p.BackgroundColor3 = WHITE glassy(p, strong and 0.74 or 0.82) local s = inst("UIStroke", {Color = WHITE, Thickness = 1, ApplyStrokeMode = Enum.ApplyStrokeMode.Border, Transparency = 0}, p) inst("UIGradient", {Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.3), NumberSequenceKeypoint.new(0.2, 0.72), NumberSequenceKeypoint.new(0.5, 0.86), NumberSequenceKeypoint.new(0.8, 0.72), NumberSequenceKeypoint.new(1, 0.3)})}, s) local sheen = inst("UIGradient", {Rotation = 90, Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(1, 0.45)})}, p) local shine = inst("Frame", {BackgroundColor3 = WHITE, BorderSizePixel = 0, AnchorPoint = Vector2.new(0.5, 0), Position = UDim2.new(0.5, 0, 0, 1), Size = UDim2.new(1, -18, 0, 1), BackgroundTransparency = 0.45, ZIndex = p.ZIndex}, p) inst("UIGradient", {Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.3, 0.3), NumberSequenceKeypoint.new(0.7, 0.3), NumberSequenceKeypoint.new(1, 1)})}, shine) return s, shine, sheen end local function tween(i, t, props, style, dir) local tw = TS:Create(i, TweenInfo.new(t, style or Enum.EasingStyle.Quint, dir or Enum.EasingDirection.Out), props) tw:Play() return tw end local function pressable(b) local sc = inst("UIScale", {}, b) b.MouseButton1Down:Connect(function() tween(sc, 0.08, {Scale = 0.96}) end) b.MouseButton1Up:Connect(function() tween(sc, 0.25, {Scale = 1}, Enum.EasingStyle.Back) end) b.MouseLeave:Connect(function() tween(sc, 0.2, {Scale = 1}) end) end local function divider(parent, pos, size, vertical) local d = inst("Frame", {BackgroundColor3 = WHITE, BorderSizePixel = 0, Position = pos, Size = size, BackgroundTransparency = 0.55}, parent) inst("UIGradient", {Rotation = vertical and 90 or 0, Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(0.5, 0.35), NumberSequenceKeypoint.new(1, 1)})}, d) return d end local function dragify(handle, frame) local drag, start, pos handle.InputBegan:Connect(function(i) if i.UserInputType == Enum.UserInputType.MouseButton1 or i.UserInputType == Enum.UserInputType.Touch then drag, start, pos = true, i.Position, frame.Position end end) conn(UIS.InputChanged, function(i) if drag and (i.UserInputType == Enum.UserInputType.MouseMovement or i.UserInputType == Enum.UserInputType.Touch) then local d = i.Position - start frame.Position = UDim2.new(pos.X.Scale, pos.X.Offset + d.X, pos.Y.Scale, pos.Y.Offset + d.Y) end end) conn(UIS.InputEnded, function(i) if i.UserInputType == Enum.UserInputType.MouseButton1 or i.UserInputType == Enum.UserInputType.Touch then drag = false end end) end local Win = inst("Frame", {Size = UDim2.fromOffset(620, 430), AnchorPoint = Vector2.new(0.5, 0.5), Position = UDim2.fromScale(0.5, 0.5), BorderSizePixel = 0, Active = true, BackgroundColor3 = WHITE}, Gui) glassy(Win) corner(Win, 12) rim(Win, 0.72) local winGrad = inst("UIGradient", {Rotation = 90}, Win) painter(function() winGrad.Color = ColorSequence.new({ColorSequenceKeypoint.new(0, C.bg:Lerp(WHITE, 0.2)), ColorSequenceKeypoint.new(0.45, C.bg:Lerp(WHITE, 0.07)), ColorSequenceKeypoint.new(1, C.bg)}) end) local Shadow = inst("ImageLabel", {Image = "rbxassetid://6015897843", ImageColor3 = Color3.new(0, 0, 0), ImageTransparency = 0.78, BackgroundTransparency = 1, ScaleType = Enum.ScaleType.Slice, SliceCenter = Rect.new(49, 49, 450, 450), ZIndex = 0}, Gui) do local function syncShadow() Shadow.Visible = Win.Visible Shadow.Position = UDim2.fromOffset(Win.AbsolutePosition.X - 22, Win.AbsolutePosition.Y - 14) Shadow.Size = UDim2.fromOffset(Win.AbsoluteSize.X + 44, Win.AbsoluteSize.Y + 44) end for _, p in ipairs({"AbsolutePosition", "AbsoluteSize", "Visible"}) do conn(Win:GetPropertyChangedSignal(p), syncShadow) end task.defer(syncShadow) end local Top = inst("Frame", {Size = UDim2.new(1, 0, 0, 70), BackgroundTransparency = 1}, Win) th(inst("TextLabel", {Text = "Mechanic Legends Hub", FontFace = face(BOLD), TextSize = 19, BackgroundTransparency = 1, Position = UDim2.fromOffset(20, 30), Size = UDim2.new(0, 360, 0, 26), TextXAlignment = Enum.TextXAlignment.Left}, Top), "TextColor3", "text") th(inst("TextLabel", {Text = UIS.KeyboardEnabled and "RightShift to hide · F6 pauses" or "", FontFace = face(MED), TextSize = 11, BackgroundTransparency = 1, AnchorPoint = Vector2.new(1, 0), Position = UDim2.new(1, -20, 0, 30), Size = UDim2.new(0, 240, 0, 26), TextXAlignment = Enum.TextXAlignment.Right}, Top), "TextColor3", "muted") local WS = {parts = {}, sizes = {normal = Vector2.new(620, 430), big = Vector2.new(780, 540)}, mode = "normal", min = false, fit = 1, anim = false} WS.parts[1] = divider(Win, UDim2.fromOffset(20, 66), UDim2.new(1, -40, 0, 1)) local fit = inst("UIScale", {}, Win) local function refit() local v = workspace.CurrentCamera.ViewportSize local sz = WS.sizes[WS.mode] WS.fit = math.clamp(math.min((v.Y - 80) / sz.Y, (v.X - 20) / sz.X), 0.45, 1) if not WS.anim then fit.Scale = WS.fit end end refit() conn(workspace.CurrentCamera:GetPropertyChangedSignal("ViewportSize"), refit) dragify(Top, Win) do th(inst("TextLabel", {RichText = true, FontFace = face(MED), TextSize = 11, BackgroundTransparency = 1, AnchorPoint = Vector2.new(1, 0), Text = '● hide ● fold ● bigger', Position = UDim2.new(1, -20, 0, 8), Size = UDim2.new(0, 240, 0, 22), TextXAlignment = Enum.TextXAlignment.Right}, Top), "TextColor3", "muted") local dots, marks = {}, {} for i, col in ipairs({Color3.fromRGB(255, 95, 87), Color3.fromRGB(254, 188, 46), Color3.fromRGB(40, 200, 64)}) do local d = inst("TextButton", {Text = "", AutoButtonColor = false, BackgroundColor3 = col, BorderSizePixel = 0, Position = UDim2.fromOffset(16 + (i - 1) * 18, 14), Size = UDim2.fromOffset(12, 12)}, Top) corner(d, "pill") marks[i] = inst("TextLabel", {Text = ({"×", "–", "+"})[i], FontFace = face(BOLD), TextSize = 11, TextColor3 = Color3.new(0, 0, 0), TextTransparency = 1, BackgroundTransparency = 1, Size = UDim2.fromScale(1, 1), Position = UDim2.fromOffset(0, -1)}, d) pressable(d) dots[i] = d end local over = 0 local function showMarks(on) for _, m in ipairs(marks) do tween(m, 0.15, {TextTransparency = on and 0.45 or 1}) end end for _, d in ipairs(dots) do d.MouseEnter:Connect(function() over += 1 showMarks(true) end) d.MouseLeave:Connect(function() over = math.max(0, over - 1) task.delay(0.05, function() if over == 0 then showMarks(false) end end) end) end local function setParts(on) for _, o in ipairs(WS.parts) do o.Visible = on end end local function resizeTo(size, keepTop) local old = Win.AbsoluteSize / math.max(fit.Scale, 0.01) local shift = keepTop and (size.Y - old.Y) / 2 * fit.Scale or 0 tween(Win, 0.35, {Size = UDim2.fromOffset(size.X, size.Y), Position = Win.Position + UDim2.fromOffset(0, shift)}) end dots[1].Activated:Connect(function() Win.Visible = false end) dots[2].Activated:Connect(function() WS.min = not WS.min local full = WS.sizes[WS.mode] if WS.min then setParts(false) resizeTo(Vector2.new(full.X, 64), true) else resizeTo(full, true) task.delay(0.22, function() if not WS.min then setParts(true) end end) end end) dots[3].Activated:Connect(function() WS.mode = WS.mode == "normal" and "big" or "normal" refit() if WS.min then WS.min = false task.delay(0.22, function() if not WS.min then setParts(true) end end) end resizeTo(WS.sizes[WS.mode], false) tween(fit, 0.35, {Scale = WS.fit}) end) end do local function openAnim() local pos = Win.Position WS.anim = true fit.Scale = WS.fit * 0.92 Win.Position = pos + UDim2.fromOffset(0, 14) tween(fit, 0.32, {Scale = WS.fit}, Enum.EasingStyle.Back) tween(Win, 0.32, {Position = pos}).Completed:Connect(function() WS.anim = false end) end local ignoreVis = 0 local function setVis(v) if Win.Visible ~= v then ignoreVis += 1 Win.Visible = v end end conn(Win:GetPropertyChangedSignal("Visible"), function() if ignoreVis > 0 then ignoreVis -= 1 return end if WS.anim then return end if Win.Visible then openAnim() return end WS.anim = true setVis(true) local pos = Win.Position tween(fit, 0.16, {Scale = WS.fit * 0.92}, Enum.EasingStyle.Quad, Enum.EasingDirection.In) tween(Win, 0.16, {Position = pos + UDim2.fromOffset(0, 14)}, Enum.EasingStyle.Quad, Enum.EasingDirection.In).Completed:Connect(function() setVis(false) Win.Position, fit.Scale = pos, WS.fit WS.anim = false end) end) task.defer(openAnim)end local Tog = th(inst("TextButton", {Text = "≡", FontFace = face(SEMI), TextSize = 28, AutoButtonColor = false, Position = UDim2.new(0, 14, 0.5, -26), Size = UDim2.fromOffset(52, 52), Visible = UIS.TouchEnabled and not UIS.KeyboardEnabled}, Gui), "TextColor3", "text") corner(Tog, "pill") liquid(Tog, true) pressable(Tog) local togGlow = inst("UIStroke", {Color = C.clay, Thickness = 2, Transparency = 1, ApplyStrokeMode = Enum.ApplyStrokeMode.Border}, Tog) themed[#themed + 1] = {togGlow, "Color", "clay"} conn(Win:GetPropertyChangedSignal("Visible"), function() tween(togGlow, 0.3, {Transparency = Win.Visible and 1 or 0.3}) end) dragify(Tog, Tog) local togAt Tog.InputBegan:Connect(function() togAt = Tog.AbsolutePosition end) Tog.Activated:Connect(function() if togAt and (Tog.AbsolutePosition - togAt).Magnitude > 6 then return end Win.Visible = not Win.Visible end) H.Tog = Tog local Side = inst("ScrollingFrame", {Position = UDim2.fromOffset(0, 76), Size = UDim2.new(0, 164, 1, -150), BackgroundTransparency = 1, BorderSizePixel = 0, ScrollBarThickness = 2, CanvasSize = UDim2.new(), AutomaticCanvasSize = Enum.AutomaticSize.Y, ScrollingDirection = Enum.ScrollingDirection.Y}, Win) th(Side, "ScrollBarImageColor3", "stroke") inst("UIListLayout", {Padding = UDim.new(0, 2), SortOrder = Enum.SortOrder.LayoutOrder}, Side) inst("UIPadding", {PaddingLeft = UDim.new(0, 16), PaddingRight = UDim.new(0, 6), PaddingBottom = UDim.new(0, 6)}, Side) th(inst("TextLabel", {Text = "MENU", FontFace = face(MED), TextSize = 11, BackgroundTransparency = 1, Size = UDim2.new(1, 0, 0, 26), LayoutOrder = -1, TextXAlignment = Enum.TextXAlignment.Left}, Side), "TextColor3", "muted").TextTransparency = 0.1 WS.parts[#WS.parts + 1] = Side WS.parts[#WS.parts + 1] = divider(Win, UDim2.fromOffset(170, 80), UDim2.new(0, 1, 1, -96), true) WS.parts[#WS.parts + 1] = divider(Win, UDim2.new(0, 20, 1, -70), UDim2.fromOffset(130, 1)) do local Acc = inst("Frame", {Position = UDim2.new(0, 16, 1, -62), Size = UDim2.fromOffset(150, 48), BackgroundTransparency = 1}, Win) WS.parts[#WS.parts + 1] = Acc local av = inst("ImageLabel", {BackgroundColor3 = WHITE, BackgroundTransparency = 0.92, Size = UDim2.fromOffset(38, 38), Position = UDim2.fromOffset(0, 5), Image = "rbxthumb://type=AvatarHeadShot&id=" .. tostring(game:GetService("Players").LocalPlayer.UserId) .. "&w=48&h=48"}, Acc) corner(av, "pill") rim(av, 0.35) th(inst("TextLabel", {Text = game:GetService("Players").LocalPlayer.DisplayName, FontFace = face(SEMI), TextSize = 13, BackgroundTransparency = 1, TextTruncate = Enum.TextTruncate.AtEnd, Position = UDim2.fromOffset(48, 7), Size = UDim2.new(1, -50, 0, 18), TextXAlignment = Enum.TextXAlignment.Left}, Acc), "TextColor3", "text") th(inst("TextLabel", {Text = "@" .. game:GetService("Players").LocalPlayer.Name, FontFace = face(), TextSize = 10, BackgroundTransparency = 1, TextTruncate = Enum.TextTruncate.AtEnd, Position = UDim2.fromOffset(48, 25), Size = UDim2.new(1, -50, 0, 14), TextXAlignment = Enum.TextXAlignment.Left}, Acc), "TextColor3", "muted") end local Pages = inst("Frame", {Position = UDim2.fromOffset(184, 80), Size = UDim2.new(1, -198, 1, -94), BackgroundTransparency = 1}, Win) WS.parts[#WS.parts + 1] = Pages local UI = {refresh = {}, el = {}, repaint = {}} local tabs = {} local function paintTabs() for _, o in ipairs(tabs) do local on = o.page.Visible o.btn.TextColor3 = on and C.text or C.muted o.btn.FontFace = face(on and SEMI or MED) o.bar.Visible = on o.chev.Visible = on end end function UI.tab(name, order) local btn = inst("TextButton", {Text = name, FontFace = face(MED), TextSize = 13, BackgroundTransparency = 1, Size = UDim2.new(1, 0, 0, 34), AutoButtonColor = false, TextXAlignment = Enum.TextXAlignment.Left, LayoutOrder = order or #tabs + 1}, Side) inst("UIPadding", {PaddingLeft = UDim.new(0, 8)}, btn) local bar = inst("Frame", {BackgroundColor3 = WHITE, BorderSizePixel = 0, AnchorPoint = Vector2.new(0, 0.5), Position = UDim2.new(0, -14, 0.5, 0), Size = UDim2.fromOffset(3, 22), Visible = false}, btn) accentGrad(bar, 90) local chev = th(inst("TextLabel", {Text = "›", FontFace = face(SEMI), TextSize = 18, BackgroundTransparency = 1, AnchorPoint = Vector2.new(1, 0.5), Position = UDim2.new(1, 0, 0.5, -1), Size = UDim2.fromOffset(16, 20), Visible = false}, btn), "TextColor3", "text") local page = inst("ScrollingFrame", {Size = UDim2.fromScale(1, 1), BackgroundTransparency = 1, BorderSizePixel = 0, ScrollBarThickness = 2, CanvasSize = UDim2.new(), AutomaticCanvasSize = Enum.AutomaticSize.Y, Visible = false}, Pages) th(page, "ScrollBarImageColor3", "stroke") inst("UIListLayout", {Padding = UDim.new(0, 8), SortOrder = Enum.SortOrder.LayoutOrder}, page) inst("UIPadding", {PaddingLeft = UDim.new(0, 2), PaddingRight = UDim.new(0, 9), PaddingBottom = UDim.new(0, 8), PaddingTop = UDim.new(0, 3)}, page) local t = setmetatable({page = page, btn = btn, bar = bar, chev = chev, n = 0}, {__index = UI.el}) local function select() if page.Visible then return end for _, o in ipairs(tabs) do o.page.Visible = false end page.Visible = true paintTabs() page.Position = UDim2.fromOffset(0, 12) tween(page, 0.35, {Position = UDim2.new()}) bar.Size = UDim2.fromOffset(3, 0) tween(bar, 0.3, {Size = UDim2.fromOffset(3, 22)}, Enum.EasingStyle.Back) chev.Position = UDim2.new(1, -8, 0.5, -1) tween(chev, 0.3, {Position = UDim2.new(1, 0, 0.5, -1)}) end btn.MouseButton1Click:Connect(select) btn.MouseEnter:Connect(function() if not page.Visible then tween(btn, 0.15, {TextColor3 = C.text}) end end) btn.MouseLeave:Connect(function() if not page.Visible then tween(btn, 0.2, {TextColor3 = C.muted}) end end) tabs[#tabs + 1] = t if #tabs == 1 then select() else paintTabs() end return t end local function card(f) f.BackgroundColor3 = WHITE glassy(f, 0.22) corner(f, 14) rim(f, 0.9) local g = inst("UIGradient", {Rotation = 0}, f) painter(function() g.Color = ColorSequence.new(C.card:Lerp(C.clay, 0.16), C.card) end) f.MouseEnter:Connect(function() tween(f, 0.18, {BackgroundTransparency = math.clamp(TH.glass / 100 + 0.14, 0, 0.95)}) end) f.MouseLeave:Connect(function() tween(f, 0.25, {BackgroundTransparency = math.clamp(TH.glass / 100 + 0.22, 0, 0.95)}) end) return f end local function row(t, h) t.n += 1 return card(inst("Frame", {Size = UDim2.new(1, 0, 0, h or 40), BorderSizePixel = 0, LayoutOrder = t.n}, t.page)) end local function lbl(parent, text) return th(inst("TextLabel", {Text = text, FontFace = face(MED), TextSize = 13, BackgroundTransparency = 1, Position = UDim2.fromOffset(16, 0), Size = UDim2.new(1, -32, 1, 0), TextXAlignment = Enum.TextXAlignment.Left}, parent), "TextColor3", "text") end function UI.el:section(text) self.n += 1 local l = th(inst("TextLabel", {Text = string.upper(text), FontFace = face(MED), TextSize = 11, BackgroundTransparency = 1, Size = UDim2.new(1, 0, 0, 24), TextXAlignment = Enum.TextXAlignment.Left, LayoutOrder = self.n}, self.page), "TextColor3", "muted") inst("UIPadding", {PaddingLeft = UDim.new(0, 4), PaddingTop = UDim.new(0, 8)}, l) end local function desc(f, l, text, rightPad) if not text then return end l.Position, l.Size = UDim2.fromOffset(16, 7), UDim2.new(1, -rightPad, 0, 18) th(inst("TextLabel", {Text = text, FontFace = face(), TextSize = 11, BackgroundTransparency = 1, TextWrapped = true, Position = UDim2.fromOffset(16, 26), Size = UDim2.new(1, -rightPad, 0, 0), AutomaticSize = Enum.AutomaticSize.Y, TextXAlignment = Enum.TextXAlignment.Left, TextYAlignment = Enum.TextYAlignment.Top}, f), "TextColor3", "muted") f.AutomaticSize = Enum.AutomaticSize.Y inst("UIPadding", {PaddingBottom = UDim.new(0, 10)}, f) end function UI.el:toggle(text, key, cb, d) local f = row(self, d and 58) desc(f, lbl(f, text), d, 78) local sw = inst("Frame", {AnchorPoint = Vector2.new(1, 0.5), Position = UDim2.new(1, -16, 0.5, 0), Size = UDim2.fromOffset(42, 24), BorderSizePixel = 0}, f) if d then sw.AnchorPoint, sw.Position = Vector2.new(1, 0), UDim2.new(1, -16, 0, 9) end corner(sw, "pill") local edge, shine, sheen = liquid(sw) local g = accentGrad(sw, 0) local glow = inst("UIStroke", {Color = C.clay, Thickness = 3, Transparency = 1, ApplyStrokeMode = Enum.ApplyStrokeMode.Border}, sw) themed[#themed + 1] = {glow, "Color", "clay"} local knob = inst("Frame", {AnchorPoint = Vector2.new(0, 0.5), Size = UDim2.fromOffset(18, 18), Position = UDim2.new(0, 3, 0.5, 0), BackgroundColor3 = WHITE, BorderSizePixel = 0, ZIndex = 2}, sw) corner(knob, "pill") local first = true local function paint() local on = S[key] sheen.Enabled, g.Enabled, edge.Enabled, shine.Visible = not on, on, not on, not on local t = first and 0 or 0.22 tween(sw, t, {BackgroundTransparency = on and 0 or math.clamp(TH.glass / 100 + 0.82, 0, 0.95)}) tween(glow, t + 0.1, {Transparency = on and 0.6 or 1}) if not first then tween(knob, 0.1, {Size = UDim2.fromOffset(24, 18)}).Completed:Connect(function() tween(knob, 0.18, {Size = UDim2.fromOffset(18, 18)}) end) end tween(knob, t + 0.06, {Position = on and UDim2.new(0, 21, 0.5, 0) or UDim2.new(0, 3, 0.5, 0)}) first = false end inst("TextButton", {Text = "", BackgroundTransparency = 1, Size = UDim2.fromScale(1, 1)}, f).MouseButton1Click:Connect(function() S[key] = not S[key] paint() if cb then cb(S[key]) end end) paint() UI.refresh[#UI.refresh + 1] = function() paint() if cb then cb(S[key]) end end UI.repaint[#UI.repaint + 1] = paint end function UI.el:slider(text, key, min, max, step, cb, d, store) store = store or S local dy = d and 26 or 0 local f = row(self, 56 + dy) local l = lbl(f, text) l.Size = UDim2.new(1, -32, 0, 32) desc(f, l, d, 100) local val = th(inst("TextLabel", {FontFace = face(SEMI), TextSize = 13, BackgroundTransparency = 1, AnchorPoint = Vector2.new(1, 0), Position = UDim2.new(1, -16, 0, 0), Size = UDim2.fromOffset(80, 32), TextXAlignment = Enum.TextXAlignment.Right}, f), "TextColor3", "text") local bar = inst("Frame", {Position = UDim2.new(0, 16, 0, 38 + dy), Size = UDim2.new(1, -32, 0, 4), BackgroundColor3 = WHITE, BackgroundTransparency = 0.86, BorderSizePixel = 0}, f) corner(bar, "pill") local fill = inst("Frame", {Size = UDim2.fromScale(0, 1), BackgroundColor3 = WHITE, BorderSizePixel = 0}, bar) corner(fill, "pill") accentGrad(fill, 0) local knob = inst("Frame", {AnchorPoint = Vector2.new(0.5, 0.5), Position = UDim2.fromScale(1, 0.5), Size = UDim2.fromOffset(14, 14), BackgroundColor3 = WHITE, BorderSizePixel = 0}, fill) corner(knob, "pill") themed[#themed + 1] = {inst("UIStroke", {Color = C.clay, Thickness = 3, Transparency = 0.55}, knob), "Color", "clay"} local hit = inst("TextButton", {Text = "", BackgroundTransparency = 1, Position = UDim2.new(0, 8, 0, 28 + dy), Size = UDim2.new(1, -16, 0, 22)}, f) local function paint() fill.Size = UDim2.fromScale(math.clamp((store[key] - min) / (max - min), 0, 1), 1) val.Text = tostring(store[key]) end local dragging = false local function set(x) local a = math.clamp((x - bar.AbsolutePosition.X) / bar.AbsoluteSize.X, 0, 1) local v = math.floor((min + (max - min) * a) / step + 0.5) * step if step < 1 then v = tonumber(string.format("%.2f", v)) end store[key] = v paint() if cb then cb(v) end end hit.MouseButton1Down:Connect(function(x) dragging = true set(x) end) conn(UIS.InputChanged, function(i) if dragging and (i.UserInputType == Enum.UserInputType.MouseMovement or i.UserInputType == Enum.UserInputType.Touch) then set(i.Position.X) end end) conn(UIS.InputEnded, function(i) if i.UserInputType == Enum.UserInputType.MouseButton1 or i.UserInputType == Enum.UserInputType.Touch then dragging = false end end) paint() UI.refresh[#UI.refresh + 1] = paint return paint end function UI.el:choice(text, key, opts, cb, d, store) store = store or S local f = row(self, d and 58) desc(f, lbl(f, text), d, 156) local b = th(inst("TextButton", {FontFace = face(MED), TextSize = 12, AnchorPoint = Vector2.new(1, 0.5), Position = UDim2.new(1, -14, 0.5, 0), Size = UDim2.fromOffset(132, 26), AutoButtonColor = false}, f), "TextColor3", "text") if d then b.AnchorPoint, b.Position = Vector2.new(1, 0), UDim2.new(1, -14, 0, 8) end corner(b, "pill") liquid(b) pressable(b) local function paint() b.Text = tostring(store[key]) .. " ›" end b.MouseButton1Click:Connect(function() local i = table.find(opts, store[key]) or 0 store[key] = opts[i % #opts + 1] paint() if cb then cb(store[key]) end end) paint() UI.refresh[#UI.refresh + 1] = paint return paint end function UI.el:button(text, fn, d) self.n += 1 local b = th(inst("TextButton", {Text = d and (text .. "\n" .. d .. "") or text, RichText = true, FontFace = face(SEMI), TextSize = 13, Size = UDim2.new(1, 0, 0, d and 50 or 38), AutoButtonColor = false, LayoutOrder = self.n}, self.page), "TextColor3", "text") corner(b, "pill") liquid(b, true) pressable(b) b.MouseEnter:Connect(function() tween(b, 0.18, {BackgroundTransparency = math.clamp(TH.glass / 100 + 0.62, 0, 0.95)}) end) b.MouseLeave:Connect(function() tween(b, 0.25, {BackgroundTransparency = math.clamp(TH.glass / 100 + 0.74, 0, 0.95)}) end) b.MouseButton1Click:Connect(function() task.spawn(fn) end) return b end function UI.el:input(text, placeholder, cb) local f = row(self) lbl(f, text) local box = th(th(inst("TextBox", {PlaceholderText = placeholder, Text = "", FontFace = face(MED), TextSize = 12, AnchorPoint = Vector2.new(1, 0.5), Position = UDim2.new(1, -14, 0.5, 0), Size = UDim2.fromOffset(170, 26), ClearTextOnFocus = false}, f), "TextColor3", "text"), "PlaceholderColor3", "muted") corner(box, "pill") liquid(box) box.FocusLost:Connect(function(enter) if cb then cb(box.Text, enter) end end) return box end function UI.el:label(text) self.n += 1 local f = card(inst("Frame", {Size = UDim2.new(1, 0, 0, 0), AutomaticSize = Enum.AutomaticSize.Y, BorderSizePixel = 0, LayoutOrder = self.n}, self.page)) inst("UIPadding", {PaddingTop = UDim.new(0, 11), PaddingBottom = UDim.new(0, 11), PaddingLeft = UDim.new(0, 16), PaddingRight = UDim.new(0, 16)}, f) local l = th(inst("TextLabel", {Text = text, RichText = true, FontFace = face(), TextSize = 13, BackgroundTransparency = 1, Size = UDim2.new(1, 0, 0, 0), AutomaticSize = Enum.AutomaticSize.Y, TextWrapped = true, TextXAlignment = Enum.TextXAlignment.Left, LineHeight = 1.2}, f), "TextColor3", "text") return function(s) l.Text = s end end function UI.el:list(h) local f = row(self, h) local sc = th(inst("ScrollingFrame", {Size = UDim2.new(1, -10, 1, -10), Position = UDim2.fromOffset(5, 5), BackgroundTransparency = 1, BorderSizePixel = 0, ScrollBarThickness = 2, CanvasSize = UDim2.new(), AutomaticCanvasSize = Enum.AutomaticSize.Y}, f), "ScrollBarImageColor3", "stroke") inst("UIListLayout", {Padding = UDim.new(0, 5), SortOrder = Enum.SortOrder.LayoutOrder}, sc) return sc end local function listItem(sc, text, btnText, fn, order) local f = inst("Frame", {Size = UDim2.new(1, -6, 0, 32), BorderSizePixel = 0, LayoutOrder = order or 0, BackgroundColor3 = WHITE, BackgroundTransparency = 0.94}, sc) corner(f, 12) th(inst("TextLabel", {Text = text, FontFace = face(), TextSize = 12, BackgroundTransparency = 1, Position = UDim2.fromOffset(12, 0), Size = UDim2.new(1, -100, 1, 0), TextXAlignment = Enum.TextXAlignment.Left, TextTruncate = Enum.TextTruncate.AtEnd}, f), "TextColor3", "text") if btnText then local b = th(inst("TextButton", {Text = btnText, FontFace = face(SEMI), TextSize = 12, BackgroundColor3 = WHITE, AnchorPoint = Vector2.new(1, 0.5), Position = UDim2.new(1, -5, 0.5, 0), Size = UDim2.fromOffset(80, 24), AutoButtonColor = true}, f), "TextColor3", "bg") corner(b, "pill") accentGrad(b, 0) b.MouseButton1Click:Connect(function() task.spawn(fn) end) end return f end local Toasts = inst("Frame", {AnchorPoint = Vector2.new(0.5, 0), Position = UDim2.new(0.5, 0, 0, 70), Size = UDim2.fromOffset(420, 500), BackgroundTransparency = 1}, Gui) inst("UIListLayout", {Padding = UDim.new(0, 10), HorizontalAlignment = Enum.HorizontalAlignment.Center, SortOrder = Enum.SortOrder.LayoutOrder}, Toasts) local toastN = 0 local function toastCard(title, text, col) toastN += 1 local holder = inst("Frame", {Size = UDim2.new(1, 0, 0, 0), AutomaticSize = Enum.AutomaticSize.Y, BackgroundTransparency = 1, LayoutOrder = -toastN}, Toasts) local f = inst("Frame", {Size = UDim2.new(1, 0, 0, 0), Position = UDim2.fromOffset(0, -20), AutomaticSize = Enum.AutomaticSize.Y, BackgroundColor3 = WHITE, BackgroundTransparency = 1, BorderSizePixel = 0}, holder) corner(f, 18) local st = rim(f, 0.82) inst("UIGradient", {Rotation = 90, Color = ColorSequence.new(C.bg:Lerp(WHITE, 0.14), C.bg)}, f) inst("UIPadding", {PaddingTop = UDim.new(0, 13), PaddingBottom = UDim.new(0, 14), PaddingLeft = UDim.new(0, 44), PaddingRight = UDim.new(0, 18)}, f) local dot = inst("Frame", {Size = UDim2.fromOffset(10, 10), Position = UDim2.fromOffset(-26, 5), BackgroundColor3 = col or C.clay, BorderSizePixel = 0}, f) corner(dot, "pill") inst("UIStroke", {Color = col or C.clay, Thickness = 3, Transparency = 0.6}, dot) local lbl = inst("TextLabel", {Text = "" .. title .. "\n" .. text, RichText = true, FontFace = face(), TextSize = 17, LineHeight = 1.1, TextColor3 = C.text, BackgroundTransparency = 1, Size = UDim2.new(1, 0, 0, 0), AutomaticSize = Enum.AutomaticSize.Y, TextWrapped = true, TextXAlignment = Enum.TextXAlignment.Left}, f) tween(f, 0.4, {Position = UDim2.new(), BackgroundTransparency = math.clamp(TH.glass / 100, 0, 0.6)}, Enum.EasingStyle.Back) local closed = false local function close() if closed then return end closed = true tween(f, 0.3, {Position = UDim2.fromOffset(0, -20), BackgroundTransparency = 1}, Enum.EasingStyle.Quad, Enum.EasingDirection.In) for _, x in ipairs(f:GetDescendants()) do if x:IsA("TextLabel") then tween(x, 0.25, {TextTransparency = 1}) elseif x:IsA("UIStroke") then tween(x, 0.25, {Transparency = 1}) elseif x:IsA("Frame") then tween(x, 0.25, {BackgroundTransparency = 1}) end end task.delay(0.35, function() if holder.Parent then holder:Destroy() end end) end return lbl, close, st end local function notify(title, text, col) if not S.Notify then return end local _, close = toastCard(title, text, col) task.delay(5, close) end do local libOwn = {[Win] = true, [Shadow] = true, [Tog] = true, [Toasts] = true} local MONT = "rbxasset://fonts/families/Montserrat.json" local function glassify(o) if libOwn[o] or not o:IsA("GuiObject") or o:GetAttribute("NoGlass") or o:GetAttribute("Glassed") then return end o:SetAttribute("Glassed", true) local function refont(d) if d:IsA("TextLabel") or d:IsA("TextButton") or d:IsA("TextBox") then pcall(function() d.FontFace = Font.new(MONT, d.FontFace.Weight, d.FontFace.Style) end) end end refont(o) for _, d in ipairs(o:GetDescendants()) do refont(d) end o.DescendantAdded:Connect(function(d) task.defer(refont, d) end) if o.BackgroundTransparency >= 0.95 then return end o.BackgroundColor3 = WHITE glassy(o, 0.04) if o:IsA("Frame") then local g = inst("UIGradient", {Rotation = 90}, o) painter(function() g.Color = ColorSequence.new(C.bg:Lerp(WHITE, 0.16), C.bg) end) else painter(function() o.BackgroundColor3 = C.bg:Lerp(WHITE, 0.1) end) end local c = o:FindFirstChildOfClass("UICorner") if c then c.CornerRadius = UDim.new(0, 14) else corner(o, 14) end for _, s in ipairs(o:GetChildren()) do if s:IsA("UIStroke") then s:Destroy() end end rim(o, 0.8) end conn(Gui.ChildAdded, function(c) task.defer(glassify, c) end) task.defer(function() for _, c in ipairs(Gui:GetChildren()) do glassify(c) end end) end local function applyTheme() loadTheme() for _, t in ipairs(themed) do pcall(function() t[1][t[2]] = C[t[3]] end) end for _, g in ipairs(grads) do g.Color = ColorSequence.new(C.clay, C.accent2) end for _, gp in ipairs(glassParts) do gp[1].BackgroundTransparency = math.clamp(TH.glass / 100 + gp[2], 0, 0.95) end for _, f in ipairs(painters) do pcall(f) end paintTabs() for _, f in ipairs(UI.repaint) do pcall(f) end pcall(function() writefile(THEME_FILE, Http:JSONEncode(TH)) end) end H.applyTheme = applyTheme task.defer(function() local T = UI.tab("Theme", 999) T:section("Preset") local names = {} for _, p in ipairs(PRESETS) do names[#names + 1] = p.name end local repaintPickers = {} T:choice("Theme", "preset", names, function() TH.primary, TH.secondary = nil, nil -- a new preset brings its own accents applyTheme() for _, f in ipairs(repaintPickers) do f() end end, "Shared by all my hubs: pick it once and every hub uses it.", TH) T:slider("Glass (transparency %)", "glass", 20, 45, 1, function() applyTheme() end, nil, TH) local function picker(label, key) T:section(label) local hsv = {} local function cur() return key == "primary" and C.clay or C.accent2 end local function readHSV() local h, s, v = cur():ToHSV() hsv.h, hsv.s, hsv.v = math.floor(h * 360 + 0.5), math.floor(s * 100 + 0.5), math.floor(v * 100 + 0.5) end readHSV() local f = row(T, 40) lbl(f, "Colour") local sw = inst("Frame", {AnchorPoint = Vector2.new(1, 0.5), Position = UDim2.new(1, -14, 0.5, 0), Size = UDim2.fromOffset(48, 24), BorderSizePixel = 0, BackgroundColor3 = cur()}, f) corner(sw, "pill") rim(sw, 0.55) local box = th(inst("TextBox", {Text = "", FontFace = face(MED), TextSize = 12, AnchorPoint = Vector2.new(1, 0.5), Position = UDim2.new(1, -70, 0.5, 0), Size = UDim2.fromOffset(88, 24), ClearTextOnFocus = false}, f), "TextColor3", "text") corner(box, "pill") liquid(box) local paints = {} local function push(c) TH[key] = c:ToHex() applyTheme() sw.BackgroundColor3 = c box.Text = "#" .. c:ToHex():upper() end local function fromHSV() push(Color3.fromHSV(hsv.h / 360, hsv.s / 100, hsv.v / 100)) end paints[#paints + 1] = T:slider("Hue", "h", 0, 360, 1, fromHSV, nil, hsv) paints[#paints + 1] = T:slider("Saturation", "s", 0, 100, 1, fromHSV, nil, hsv) paints[#paints + 1] = T:slider("Brightness", "v", 0, 100, 1, fromHSV, nil, hsv) box.FocusLost:Connect(function() local c = hex((box.Text:gsub("#", ""))) if c then push(c) readHSV() for _, p in ipairs(paints) do p() end end end) local function repaint() readHSV() for _, p in ipairs(paints) do p() end sw.BackgroundColor3 = cur() box.Text = "#" .. cur():ToHex():upper() end repaint() repaintPickers[#repaintPickers + 1] = repaint end picker("Primary colour", "primary") picker("Secondary colour", "secondary") T:button("Reset to preset colours", function() TH.primary, TH.secondary = nil, nil applyTheme() for _, f in ipairs(repaintPickers) do f() end end) paintTabs() end) local function HubBody() -- own 200-local budget, apart from the menu library local Rem = RS:WaitForChild("Remotes") local Fn, Ev = Rem:WaitForChild("Functions"), Rem:WaitForChild("Events") local DATA = LP:WaitForChild("PlayerData"):WaitForChild("__REFLECT") local paused = false local F = {} -- shared helpers between sections (keeps each section's locals small) H.F = F local function call(name, ...) local r = Fn:FindFirstChild(name) if not r then return false, "missing remote " .. name end return pcall(r.InvokeServer, r, ...) end local function cash() local ls = LP:FindFirstChild("leaderstats") local c = ls and ls:FindFirstChild("Cash") return c and c.Value or 0 end local function miles() local ls = LP:FindFirstChild("leaderstats") local m = ls and ls:FindFirstChild("Miles") return m and m.Value or 0 end local function myRoot() local c = LP.Character return c and c:FindFirstChild("HumanoidRootPart") end local function commas(n) n = math.floor(tonumber(n) or 0) local s = tostring(math.abs(n)):reverse():gsub("(%d%d%d)", "%1,"):reverse():gsub("^,", "") return (n < 0 and "-$" or "$") .. s end local function dist(p) local r = myRoot() return r and p and (p - r.Position).Magnitude or math.huge end H.liveRequire = (function() local ok, a = pcall(require, RS.Remotes) local ok2, net = pcall(require, RS.Shared.Network) return ok and ok2 and type(a) == "table" and type(net) == "table" and net.Remotes == a end)() local function side(fn, ...) local args, res, done = table.pack(...), nil, false task.spawn(function() res = table.pack(pcall(fn, table.unpack(args, 1, args.n))) done = true end) local t0 = os.clock() while not done and os.clock() - t0 < 6 do task.wait() end if not (res and res[1]) then return nil, res and res[2] or "timed out" end return table.unpack(res, 2, res.n) end local NEEDS = "needs a stronger executor: this one's require() starts a fresh copy of the game's code, so changes never reach your car" local function myCar() for _, c in ipairs(workspace:WaitForChild("__PLAYERCARS"):GetChildren()) do if c:GetAttribute("OwnerUID") == LP.UserId then local seat = c:FindFirstChild("DriveSeat") if seat and seat.Occupant and seat.Occupant.Parent == LP.Character then return c, true end end end for _, c in ipairs(workspace.__PLAYERCARS:GetChildren()) do if c:GetAttribute("OwnerUID") == LP.UserId and c:GetAttribute("EngineOn") then return c, false end end end local ST = {cash0 = cash(), miles0 = miles(), t0 = os.clock(), jobs = 0, bought = 0, spent = 0, drive = 0} conn(Ev:WaitForChild("DriveEarningsPaid").OnClientEvent, function(n) ST.drive += tonumber(n) or 0 end) H.why = "idle" local LOG = {} function F.log(msg) table.insert(LOG, 1, os.date("%H:%M") .. " " .. msg) if #LOG > 6 then table.remove(LOG) end end local function jobInfo(f) local t = {f = f, id = f:GetAttribute("Id"), pay = f:GetAttribute("Payment") or 0, exp = f:GetAttribute("EXPReward") or 0, q = f:GetAttribute("Quality") or 0, who = f:GetAttribute("CustomerName") or "?", status = f:GetAttribute("Status"), tasks = 0, done = 0, installs = 0, accepted = f:GetAttribute("AcceptedAt")} local v = f:FindFirstChild("Vehicle") t.car = v and v:GetAttribute("DisplayName") or "car" local tk = f:FindFirstChild("Tasks") for _, x in ipairs(tk and tk:GetChildren() or {}) do t.tasks += 1 if x:GetAttribute("IsComplete") then t.done += 1 elseif x:GetAttribute("Type") == "InstallEngineComponent" or x:GetAttribute("IsScrapped") then t.installs += 1 end end return t end function F.offers() local t = {} local o = DATA:FindFirstChild("CustomerJobs") o = o and o:FindFirstChild("Offers") for _, f in ipairs(o and o:GetChildren() or {}) do t[#t + 1] = jobInfo(f) end return t end function F.active() local t = {} local o = DATA:FindFirstChild("CustomerJobs") o = o and o:FindFirstChild("ActiveJobs") for _, f in ipairs(o and o:GetChildren() or {}) do t[#t + 1] = jobInfo(f) end return t end local PICK = { ["Highest pay"] = function(a, b) return a.pay > b.pay end, ["Most EXP"] = function(a, b) return a.exp > b.exp end, ["Pay per task"] = function(a, b) return a.pay / math.max(a.tasks, 1) > b.pay / math.max(b.tasks, 1) end, ["Fewest tasks"] = function(a, b) if a.tasks == b.tasks then return a.pay > b.pay end return a.tasks < b.tasks end, } function F.bestOffer() local list = {} for _, j in ipairs(F.offers()) do if j.id and j.pay >= S.JobMinPay and j.status ~= "Expired" then list[#list + 1] = j end end table.sort(list, PICK[S.JobPick] or PICK["Highest pay"]) return list[1], list end function F.accept(j) local ok, res, msg = call("AcceptCustomerJob", j.id) F.log((ok and res ~= false) and ("Accepted " .. j.who .. "'s " .. j.car .. " (" .. commas(j.pay) .. ")") or ("Couldn't accept " .. j.who .. "'s job")) notify("Customer jobs", (ok and res ~= false) and ("Took " .. j.who .. "'s " .. j.car .. " · " .. commas(j.pay)) or ("Couldn't take the job: " .. tostring(msg or res)), (ok and res ~= false) and C.clay or Color3.fromRGB(255, 120, 110)) return ok and res ~= false end local ordered, completed = {}, {} local jobTarget = {} F.nextStep, F.nextAccept = 0, 0 function F.paceSec() return math.max(S.JobPace or 0, 0) * 60 end function F.stepGap() return F.paceSec() / 24 * (0.6 + math.random() * 0.8) end -- a job is roughly 20-25 remove / install steps local function targetFor(id) if not jobTarget[id] then jobTarget[id] = F.paceSec() * (0.85 + math.random() * 0.3) end return jobTarget[id] end loop(3, function() if paused then return end local act = F.active() for _, j in ipairs(act) do local openFor = j.accepted and (workspace:GetServerTimeNow() - j.accepted) or math.huge local waitLeft = math.max(targetFor(j.id) - openFor, 0) F.handWhy = (S.AutoComplete and j.tasks > 0 and j.done >= j.tasks and waitLeft > 0) and string.format("all done · handing over in %d:%02d (pace)", waitLeft // 60, math.floor(waitLeft % 60)) or nil if S.AutoComplete and j.tasks > 0 and j.done >= j.tasks and not completed[j.id] and waitLeft <= 0 then completed[j.id] = true local ok, res, msg = call("CompleteCustomerJob", j.id) if ok and res ~= false then ST.jobs += 1 F.handWhy = nil F.nextAccept = os.clock() + (F.paceSec() > 0 and math.random(8, 25) or 0) F.log("Handed over " .. j.car .. " (" .. commas(j.pay) .. ")") notify("Customer jobs", "Handed over " .. j.car .. " · " .. commas(j.pay), C.clay) else completed[j.id] = nil notify("Customer jobs", "Couldn't hand over yet: " .. tostring(msg or res)) end end if S.AutoOrder and j.installs > 0 and not ordered[j.id] then ordered[j.id] = true local okP, okRes, info = call("PreviewJobParts", j.id) if okP and okRes == true and type(info) == "table" and type(info.Items) == "table" and next(info.Items) then local ok, res = call("OrderJobParts", j.id) local good = ok and res == true F.log(good and ("Ordered parts for " .. j.car .. " (" .. commas(info.Total or 0) .. ", ~" .. math.ceil((info.Seconds or 0) / 60) .. " min)") or ("Couldn't order parts for " .. j.car)) notify("Customer jobs", good and ("Ordered the parts for " .. j.car .. " · " .. commas(info.Total or 0) .. " · arrives in ~" .. math.ceil((info.Seconds or 0) / 60) .. " min") or "Couldn't order the parts") end end end if #act == 0 then F.handWhy = nil end if S.AutoAccept and #act == 0 and os.clock() >= F.nextAccept and not (F.flipTurn and F.flipTurn()) then local j = F.bestOffer() if j then F.accept(j) end end end) do local CS = game:GetService("CollectionService") local Ev2 = Rem:WaitForChild("Events") local function jobCar(id) for _, c in ipairs(workspace.__PLAYERCARS:GetChildren()) do if c:GetAttribute("CustomerJobId") == id then return c end end end local function looseFolder() local d = workspace:FindFirstChild("__DEBRIS") d = d and d:FindFirstChild("LooseParts") return d and d:FindFirstChild(tostring(LP.UserId)) end local function catOf(p) return p:GetAttribute("EngineCategory") or p:GetAttribute("ChassisPartId") or p.Name end local function isChassis(p) return p:GetAttribute("ChassisPartId") ~= nil or CS:HasTag(p, "ChassisPart") or CS:HasTag(p, "DetachedChassisPart") end local function loose(id, cat) local f = looseFolder() for _, p in ipairs(f and f:GetChildren() or {}) do if p:GetAttribute("CustomerJobId") and id:find(p:GetAttribute("CustomerJobId"), 1, true) == 1 and (not cat or catOf(p) == cat) then return p end end end local function looseNew(id, cat) local f = looseFolder() for _, p in ipairs(f and f:GetChildren() or {}) do if p:GetAttribute("CustomerJobId") and id:find(p:GetAttribute("CustomerJobId"), 1, true) == 1 and catOf(p) == cat and p:GetAttribute("IsUsedPart") ~= true then return p end end end local function looseAll(id) local t, f = {}, looseFolder() for _, p in ipairs(f and f:GetChildren() or {}) do if p:GetAttribute("CustomerJobId") and id:find(p:GetAttribute("CustomerJobId"), 1, true) == 1 then t[#t + 1] = p end end return t end local function onCar(car, cat) for _, tag in ipairs({"EnginePart", "ChassisPart"}) do for _, p in ipairs(CS:GetTagged(tag)) do if p:IsDescendantOf(car) and catOf(p) == cat then return p end end end end local function blocker(car, msg) if type(msg) ~= "string" then return nil end msg = msg:gsub("<[^>]->", "") local n = msg:match("[Rr]emove the (.-) before") or msg:match("[Rr]emove (.-) first") if not n then return nil end n = n:gsub(" and %d+ others?$", ""):gsub(" and .+$", ""):gsub("^the ", "") return onCar(car, (n:gsub(" ", ""))) end local function detach(car, p, depth) local fn = isChassis(p) and "DetachChassisPart" or "DetachEnginePart" local ok, res, msg = call(fn, p) if ok and (res == true or (res == nil and msg == nil)) then return true end local b = blocker(car, msg) if b and (depth or 0) < 8 and detach(car, b, (depth or 0) + 1) then return detach(car, p, (depth or 0) + 1) end return false end local prereq -- set below: finds the part the game says has to go on first local function install(car, p, clearWay, id, depth) local fns = p:GetAttribute("WheelCorner") and {"InstallWheel"} or p:GetAttribute("BodyPanelItemId") and {"InstallBodyPanel"} or isChassis(p) and {"InstallChassisPart"} or p:GetAttribute("EngineCategory") and {"InstallEngineComponent"} or {"InstallEngineComponent", "InstallChassisPart", "InstallBodyPanel", "InstallBodyKit", "InstallWheel"} for _ = 1, 6 do local msg for _, fn in ipairs(fns) do local ok, res, m = call(fn, car, p, p:GetAttribute("WheelCorner")) -- wheels need their corner (RR, FL…), everything else ignores it if ok and res == true then return true end if type(m) == "string" and (not msg or m:find("first") or m:find("before")) then msg = m end end local b = clearWay and blocker(car, msg) if b then if not detach(car, b) then return false, msg end else -- "install the Valve Cover first": fit that one, then try again local q = id and (depth or 0) < 6 and prereq(id, car, msg, catOf(p)) if not (q and install(car, q, clearWay, id, (depth or 0) + 1)) then return false, msg end end task.wait(0.3) end return false end local function repairing(p) return p:GetAttribute("Repairing") == true end local function busy(id, factor) local n = 0 for _, p in ipairs(looseAll(id)) do if repairing(p) and p:GetAttribute("RepairFactor") == factor then n += 1 end end return n end local function polish(id, p, factor) if factor == "Wear" and (p:GetAttribute("Rust") or 0) > 0 then factor = "Rust" end if repairing(p) or busy(id, factor) >= 3 then return factor end Ev2.RepairPart:FireServer(p, factor, nil) return factor end local function norm(s) return tostring(s):lower():gsub("[^%a]", "") end local function withdraw(id, target, newOnly) for _, it in ipairs(DATA.Inventory:GetChildren()) do local md = it:FindFirstChild("Metadata") if it:GetAttribute("Class") ~= "Vehicles" and md and md:GetAttribute("CustomerJobId") == id and norm(it:GetAttribute("ItemId")):find(norm(target), 1, true) and not (newOnly and md:GetAttribute("IsUsedPart") == true) then local ok, res = call("WithdrawPart", it:GetAttribute("UUID")) if ok and res then task.wait(1) return newOnly and looseNew(id, target) or loose(id, target) end end end end prereq = function(id, car, msg, own) -- "Install the Valve Cover first!" -> the job's ValveCover, loose or from your inventory local n = type(msg) == "string" and msg:gsub("<[^>]->", ""):match("[Ii]nstall the (.-) first") local cat = n and (n:gsub("[^%w]", "")) if not cat or cat == own or onCar(car, cat) then return end return loose(id, cat) or withdraw(id, cat) end F.workWhy = nil loop(1, function() if paused or not S.AutoWork then F.workWhy = nil return end local jf = DATA.CustomerJobs.ActiveJobs:GetChildren()[1] if not jf then F.workWhy = nil return end local id = jf:GetAttribute("Id") local car = jobCar(id) if not car then if not F.flipBusy and DATA:GetAttribute("Location") ~= "PlayerShop" and os.clock() > (F.shopTrip or 0) then F.shopTrip = os.clock() + 15 local h = LP.Character and LP.Character:FindFirstChildOfClass("Humanoid") if h and h.SeatPart then h.Sit = false task.wait(0.5) end call("TravelToLocation", "YourShop") end F.workWhy = "the customer's car isn't in your shop" return end local open, targets, scrapped = {}, {}, {} for _, t in ipairs(jf.Tasks:GetChildren()) do targets[t:GetAttribute("Target")] = t:GetAttribute("Type") if t:GetAttribute("IsScrapped") then scrapped[t:GetAttribute("Target")] = true end if not t:GetAttribute("IsComplete") then open[#open + 1] = t end end local why for _, t in ipairs(open) do local ty, cat = t:GetAttribute("Type"), t:GetAttribute("Target") if (ty == "RepairEngineComponent" or ty == "ChargeBattery") and not scrapped[cat] then local p = loose(id, cat) if p and (p:GetAttribute("Damage") or 0) < 100 then local used = polish(id, p, ty == "ChargeBattery" and "Charge" or "Wear") why = why or ((used == "Charge" and "charging the " or used == "Rust" and "cleaning rust off the " or "polishing the ") .. cat .. " (" .. math.floor(p:GetAttribute("Damage") or 0) .. "%)") end end end local acted = os.clock() < F.nextStep -- pace: wait before the next step if acted then why = why or "taking it slow (pace)" end for _, t in ipairs(open) do if acted then break end local ty, cat = t:GetAttribute("Type"), t:GetAttribute("Target") if scrapped[cat] then local on = onCar(car, cat) if on and on:GetAttribute("IsUsedPart") ~= false and (on:GetAttribute("Damage") or 100) < 100 then why = why or ("taking off the scrapped " .. cat) acted = detach(car, on) elseif not on then local p = looseNew(id, cat) or withdraw(id, cat, true) if p then why = why or ("fitting the new " .. cat) acted = install(car, p, true, id) else why = why or ("waiting for the new " .. cat .. " (order it / open the delivery)") end end elseif ty == "InstallEngineComponent" then local p = loose(id, cat) or withdraw(id, cat) if p then why = why or ("installing the " .. cat) acted = install(car, p, true, id) else why = why or ("waiting for the " .. cat .. " part (order it / open the delivery)") end elseif ty == "RepairEngineComponent" or ty == "ChargeBattery" then local p = loose(id, cat) if not p then local on = onCar(car, cat) if on then why = why or ("taking off the " .. cat .. " to repair it") acted = detach(car, on) elseif withdraw(id, cat) then acted = true end elseif (p:GetAttribute("Damage") or 0) >= 100 and not repairing(p) then why = why or ("putting the " .. cat .. " back") acted = install(car, p, true, id) end end end if not acted then for _, p in ipairs(looseAll(id)) do local tt = targets[catOf(p)] local waiting = ((tt == "RepairEngineComponent" or tt == "ChargeBattery") and (p:GetAttribute("Damage") or 0) < 100) or (scrapped[catOf(p)] and p:GetAttribute("IsUsedPart") == true) if not waiting and not repairing(p) and install(car, p, false, id) then why = why or ("putting the " .. catOf(p) .. " back") acted = true break end end end if not acted and #looseAll(id) == 0 then for _, it in ipairs(DATA.Inventory:GetChildren()) do local md = it:FindFirstChild("Metadata") local item = it:GetAttribute("ItemId") local oldScrap = scrapped[item] and md and md:GetAttribute("IsUsedPart") == true if oldScrap and S.TrashScrapped then local ok, res = call("DiscardPart", it:GetAttribute("UUID")) if ok and res ~= false then F.log("Threw away the scrapped " .. tostring(item)) end elseif not oldScrap and it:GetAttribute("Class") ~= "Vehicles" and md and md:GetAttribute("CustomerJobId") == id and not onCar(car, item) then if withdraw(id, item) then why = why or ("bringing the " .. tostring(item) .. " back out") break end end end end if acted and os.clock() >= F.nextStep then F.nextStep = os.clock() + F.stepGap() end F.workWhy = #open > 0 and (why or "working") or nil end) end loop(4, function() if paused or not S.AutoCollect then return end for _, d in ipairs(workspace:GetDescendants()) do local id = d:GetAttribute("DeliveryId") if type(id) == "string" and not d:GetAttribute("MLH_Opened") then local ok, res = call("OpenPartDelivery", id) if ok and res == true then d:SetAttribute("MLH_Opened", true) F.log("Opened a part delivery") notify("Deliveries", "Opened a part delivery") end end end end) local Odds, VehDir pcall(function() Odds = require(RS.Shared.JunkyardOdds) end) pcall(function() VehDir = require(RS.Shared.Directory.Vehicles) end) function F.junk() local t = {} local folder = workspace:FindFirstChild("__JUNKYARD") folder = folder and folder:FindFirstChild("Cars") for _, m in ipairs(folder and folder:GetChildren() or {}) do local rf = m:FindFirstChild("__REFLECT") local v = rf and rf:FindFirstChild("Value") if v then local R, P, Sc, Pc = v:GetAttribute("Restored") or 0, v:GetAttribute("Profit") or 0, v:GetAttribute("StripCost") or 0, v:GetAttribute("PartsCost") or 0 local c = {m = m, restored = R, profit = P, margin = v:GetAttribute("Margin") or 0, price = R - P - Sc - Pc, dir = m:GetAttribute("VehicleId") or m.Name:gsub("^Junkyard_", "")} c.uuid, c.parts = rf:GetAttribute("Uuid"), Pc local pr = rf:GetAttribute("Price") if type(pr) == "number" and pr > 0 then c.price = pr end local dirEntry = type(VehDir) == "table" and VehDir[c.dir] c.name = type(dirEntry) == "table" and (dirEntry.DisplayName or dirEntry.Name) or c.dir if Odds and Odds.CarShare then local sh = side(Odds.CarShare, c.dir) if type(sh) == "number" then c.share = sh end end local sum, n = 0, 0 for _, p in ipairs(rf:GetDescendants()) do local dmg = p:GetAttribute("Damage") if type(dmg) == "number" then sum += dmg n += 1 end end c.cond = n > 0 and math.floor(sum / n) or nil local md = rf:FindFirstChild("Metadata") c.rust = md and md:GetAttribute("PaintRusted") == true c.pos = m:GetPivot().Position t[#t + 1] = c end end return t end local junkTags = {} local function clearTag(m) local e = junkTags[m] if e then pcall(e.bb.Destroy, e.bb) pcall(e.hl.Destroy, e.hl) junkTags[m] = nil end end loop(0.5, function() local list = S.JunkESP and F.junk() or {} local best, seen = nil, {} for _, c in ipairs(list) do if c.price <= cash() and (not best or c.profit > best.profit) then best = c end end for _, c in ipairs(list) do local show = c.profit >= S.JunkMinProfit and (not S.JunkAffordable or c.price <= cash()) if show then seen[c.m] = true local e = junkTags[c.m] if not e then local part = c.m.PrimaryPart or c.m:FindFirstChildWhichIsA("BasePart", true) e = {bb = inst("BillboardGui", {AlwaysOnTop = true, Size = UDim2.fromOffset(230, 70), StudsOffset = Vector3.new(0, 5, 0), Adornee = part}, HUI), hl = inst("Highlight", {FillTransparency = 0.8, OutlineTransparency = 0.2, DepthMode = Enum.HighlightDepthMode.AlwaysOnTop, Adornee = c.m}, HUI)} e.t = inst("TextLabel", {Size = UDim2.fromScale(1, 1), BackgroundTransparency = 1, Font = Enum.Font.GothamBold, TextSize = 13, TextStrokeTransparency = 0.3, RichText = true}, e.bb) junkTags[c.m] = e H.insts[#H.insts + 1] = e.bb H.insts[#H.insts + 1] = e.hl end local isBest = best and best.m == c.m local col = isBest and Color3.fromRGB(255, 214, 90) or (c.profit > 0 and Color3.fromRGB(110, 230, 140) or Color3.fromRGB(255, 120, 110)) e.t.TextColor3, e.hl.FillColor, e.hl.OutlineColor = col, col, col e.t.Text = string.format("%s%s\n%s · profit %s (%d%%)\ncondition %s%s%s · %dm", isBest and "★ BEST " or "", c.name, commas(c.price), commas(c.profit), math.floor(c.margin * 100), c.cond and (c.cond .. "%") or "?", c.rust and " · rust" or "", c.share and string.format(" · %.1f%% spawn", c.share * (c.share <= 1 and 100 or 1)) or "", math.floor(dist(c.pos) * 0.28)) end end for m in pairs(junkTags) do if not seen[m] or not m.Parent then clearTag(m) end end end) function F.buyJunk(c) local root, h = myRoot(), LP.Character and LP.Character:FindFirstChildOfClass("Humanoid") if not (root and c.uuid and c.m.Parent) then return false, "the car's gone" end if h and h.SeatPart then h.Sit = false task.wait(0.5) end local cf, size = c.m:GetBoundingBox() root.CFrame = CFrame.new(cf.Position + cf.RightVector * (size.X / 2 + 3) + Vector3.new(0, 2, 0)) task.wait(0.8) local ok, res, msg for _ = 1, 2 do -- right after travelling the server can miss the first look, so look again once Ev.JunkyardHold:FireServer(c.uuid, true) task.wait(1.2) ok, res, msg = call("BuyJunkyardCar", c.uuid) if ok and res == true or not tostring(msg or res):find("look") then break end end Ev.JunkyardHold:FireServer(c.uuid, false) if ok and res == true then ST.bought += 1 ST.spent += c.price return true end return false, msg or res end local lastBuy, quietSince = 0, os.clock() loop(2, function() if paused or not S.Snipe then quietSince = os.clock() return end local pick for _, c in ipairs(F.junk()) do if c.uuid and c.profit >= S.SnipeMinProfit and c.price <= S.SnipeMaxPrice and cash() - c.price >= S.SnipeReserve and (not pick or c.profit > pick.profit) then pick = c end end if pick and os.clock() - lastBuy > 7 then lastBuy = os.clock() local good, msg = F.buyJunk(pick) if good then quietSince = os.clock() end notify("Junkyard sniper", good and ("Bought " .. pick.name .. " for " .. commas(pick.price) .. " · profit " .. commas(pick.profit)) or ("Couldn't buy " .. pick.name .. ": " .. tostring(msg)), good and C.clay or Color3.fromRGB(255, 120, 110)) elseif not pick and S.SnipeHop and os.clock() - quietSince > 25 then quietSince = os.clock() F.hop("any") end end) do local CS = game:GetService("CollectionService") local FILE = "MLHub_flip_" .. LP.UserId .. ".json" local db = {cars = {}} pcall(function() local t = Http:JSONDecode(readfile(FILE)) if type(t) == "table" and type(t.cars) == "table" then db = t end end) local function saveDb() pcall(writefile, FILE, Http:JSONEncode(db)) end local FST = {flips = 0, profit = 0} F.flipStats, F.flipWhy, F.flipBusy = FST, nil, false local jobsAtFlip = -1 local function hum() local c = LP.Character return c and c:FindFirstChildOfClass("Humanoid") end local function invVehicles() local t = {} for _, it in ipairs(DATA.Inventory:GetChildren()) do if it:GetAttribute("Class") == "Vehicles" then t[it:GetAttribute("UUID")] = it end end return t end local function flipCar() for _, c in ipairs(workspace.__PLAYERCARS:GetChildren()) do local id = c:GetAttribute("VehicleUUID") if c:GetAttribute("OwnerUID") == LP.UserId and id and db.cars[id] then return c, db.cars[id] end end end local function hopOut() local h = hum() if h and h.SeatPart then h.Sit = false h.Jump = true task.wait(0.8) end end local function go(car, dest, standAt) hopOut() local ok, res, msg = call("TravelToLocation", dest) if not (ok and res) and not tostring(msg):find("already") then F.flipWhy = "couldn't travel: " .. tostring(msg or res) return false end task.wait(4) if not car then return true end local root = myRoot() if root and standAt then root.CFrame = CFrame.new(standAt) task.wait(1) end local ok2, res2, msg2 = call("RequestSpawnVehicle", car:GetAttribute("VehicleUUID")) if not (ok2 and res2) then F.flipWhy = "couldn't bring the car: " .. tostring(msg2 or res2) return false end task.wait(3) hopOut() -- the respawn seats you; staying in can glitch the game's car UI on some executors, and standing next to it is enough return true end local function standBy(p) local root = myRoot() if root and (root.Position - p).Magnitude > 25 then hopOut() root.CFrame = CFrame.new(p + Vector3.new(0, 4, 0)) task.wait(0.8) end end local function park(car, cf) -- lift by the pivot's height above the car's floor, measured only from nearby parts: a flung wheel must not count local p = car:GetPivot().Position local low = p.Y for _, d in ipairs(car:GetDescendants()) do if d:IsA("BasePart") and (d.Position - p).Magnitude < 20 then low = math.min(low, d.Position.Y - d.Size.Y / 2) end end car:PivotTo(cf * CFrame.new(0, math.clamp(p.Y - low, 0, 8) + 0.5, 0)) task.wait(1.2) end local function boothArea(kind, car) local list = {} if kind == "Prep" then local f = workspace:FindFirstChild("__INTERACTIONS") f = f and f:FindFirstChild("PaintShop") for _, d in ipairs(f and f:GetDescendants() or {}) do if d.Name == "PrepBooth_Area" and d:IsA("BasePart") then list[#list + 1] = d end end else for _, b in ipairs(CS:GetTagged("PaintBooth")) do local a = b:FindFirstChild("_AREA") if a and a:IsA("BasePart") then list[#list + 1] = a end end end for _, a in ipairs(list) do if not a:GetAttribute("Active") or a:GetAttribute("ActiveCarUUID") == car:GetAttribute("VehicleUUID") then return a end end return nil, #list end local function zoneCenter(name) local zf = RS:FindFirstChild("__ZONES") zf = zf and zf:FindFirstChild(name) local poly = zf and zf:FindFirstChildWhichIsA("Configuration", true) if not poly then return end local sx, sz, n = 0, 0, 0 for _, v in pairs(poly:GetAttributes()) do if typeof(v) == "Vector2" then sx += v.X sz += v.Y n += 1 end end return n > 0 and Vector3.new(sx / n, poly:GetAttribute("Y") or 0, sz / n) or nil end local BASE = Color3.fromRGB(158, 162, 166) local function isBase(v) return typeof(v) == "Color3" and math.abs(v.R - BASE.R) < 0.01 and math.abs(v.G - BASE.G) < 0.01 and math.abs(v.B - BASE.B) < 0.01 end local function savePaint(car, rec) if rec.paint then return end rec.paint = {} for k, v in pairs(car:GetAttributes()) do local slot = k:match("^ExteriorPaint_(.+)$") if slot and typeof(v) == "Color3" then rec.paint[slot] = {v.R, v.G, v.B, car:GetAttribute("ExteriorPaintVariant_" .. slot)} end end saveDb() end local function isPrimer(car) for k, v in pairs(car:GetAttributes()) do if k:match("^ExteriorPaint_") and isBase(v) then return true end end return false end local finishes local function finishFor(variant) if not finishes then local okP, PFm = pcall(require, RS.Shared.Util.PaintFinishes) finishes = okP and type(PFm) == "table" and side(PFm.List, "Exterior") or {} end for _, f in ipairs(type(finishes) == "table" and finishes or {}) do if f.MaterialVariant == variant or f.Id == variant then return f.Id end end end local function catOf(p) return p:GetAttribute("EngineCategory") or p:GetAttribute("ChassisPartId") or p.Name end local function isChassis(p) return p:GetAttribute("ChassisPartId") ~= nil or CS:HasTag(p, "ChassisPart") or CS:HasTag(p, "DetachedChassisPart") end local function looseFolder() local d = workspace:FindFirstChild("__DEBRIS") d = d and d:FindFirstChild("LooseParts") return d and d:FindFirstChild(tostring(LP.UserId)) end local function same(a, b) return type(a) == "string" and type(b) == "string" and (a:sub(1, #b) == b or b:sub(1, #a) == a) end local function mine(rec, u) for k in pairs(rec.parts) do if same(k, u) then return true end end return false end local function looseOf(rec) local t = {} for _, p in ipairs(looseFolder() and looseFolder():GetChildren() or {}) do if mine(rec, p:GetAttribute("ItemUUID")) then t[#t + 1] = p end end return t end local function invOf(rec) local t = {} for _, it in ipairs(DATA.Inventory:GetChildren()) do if it:GetAttribute("Class") ~= "Vehicles" and mine(rec, it:GetAttribute("UUID")) then t[#t + 1] = it end end return t end local function partsOn(car) local t = {} for _, tag in ipairs({"EnginePart", "ChassisPart"}) do for _, p in ipairs(CS:GetTagged(tag)) do if p:IsDescendantOf(car) then t[#t + 1] = p end end end return t end local function onCar(car, cat) for _, p in ipairs(partsOn(car)) do if catOf(p) == cat then return p end end end local function worn(p) local d = p:GetAttribute("Damage") return type(d) == "number" and d < 100 end local function needsWork(car, rec) if #invOf(rec) > 0 then return true end for _, p in ipairs(partsOn(car)) do if worn(p) then return true end end return false end local function blocker(car, msg) if type(msg) ~= "string" then return nil end msg = msg:gsub("<[^>]->", "") local n = msg:match("[Rr]emove the (.-) before") or msg:match("[Rr]emove (.-) first") if not n then return nil end n = n:gsub(" and .+$", ""):gsub("^the ", "") return onCar(car, (n:gsub(" ", ""))) end local function detach(car, rec, p, depth) local cat = catOf(p) local ok, res, msg = call(isChassis(p) and "DetachChassisPart" or "DetachEnginePart", p) if ok and (res == true or (res == nil and msg == nil)) then for _ = 1, 10 do for _, lp in ipairs(looseFolder() and looseFolder():GetChildren() or {}) do local u = lp:GetAttribute("ItemUUID") if u and catOf(lp) == cat and not lp:GetAttribute("CustomerJobId") and not mine(rec, u) then rec.parts[u] = true saveDb() return true end end task.wait(0.2) end return true end local b = blocker(car, msg) if b and (depth or 0) < 8 and detach(car, rec, b, (depth or 0) + 1) then return detach(car, rec, p, (depth or 0) + 1) end return false end local function repairTick(car, rec) local out = {} for _, p in ipairs(looseOf(rec)) do out[#out + 1] = p:GetAttribute("ItemUUID") end for _, it in ipairs(invOf(rec)) do local u, isOut = it:GetAttribute("UUID"), false for _, k in ipairs(out) do if same(k, u) then isOut = true end end if not isOut then call("WithdrawPart", u) task.wait(0.3) end end for _, lp in ipairs(looseFolder() and looseFolder():GetChildren() or {}) do local u = lp:GetAttribute("ItemUUID") if u and (lp:GetAttribute("EngineCategory") or lp:GetAttribute("ChassisPartId")) and not lp:GetAttribute("CustomerJobId") and not onCar(car, catOf(lp)) and not mine(rec, u) then rec.parts[u] = true end end local lo, why = looseOf(rec), nil local busy = {} for _, p in ipairs(lo) do if p:GetAttribute("Repairing") then local f = p:GetAttribute("RepairFactor") or "?" busy[f] = (busy[f] or 0) + 1 end end for _, p in ipairs(lo) do if worn(p) then if not p:GetAttribute("Repairing") then local f = isChassis(p) and "Charge" or ((p:GetAttribute("Rust") or 0) > 0 and "Rust" or "Wear") if (busy[f] or 0) < 3 then Ev.RepairPart:FireServer(p, f, nil) busy[f] = (busy[f] or 0) + 1 end end why = why or ("repairing the " .. catOf(p) .. " (" .. math.floor(p:GetAttribute("Damage")) .. "%)") end end for _, p in ipairs(lo) do if not worn(p) and not p:GetAttribute("Repairing") then local ok, res = call(isChassis(p) and "InstallChassisPart" or "InstallEngineComponent", car, p, nil) if ok and res == true then why = why or ("putting the " .. catOf(p) .. " back") break end end end for _, p in ipairs(partsOn(car)) do if worn(p) and detach(car, rec, p) then why = why or ("taking off the " .. catOf(p)) break end end F.flipWhy = why or "repairing the " .. rec.name end local function buyStep() local function pick() local best for _, c in ipairs(F.junk()) do if c.uuid and (c.parts or 0) == 0 and c.profit >= S.FlipMinProfit and c.price <= cash() - S.FlipReserve and (not best or c.profit > best.profit) then best = c end end return best end if #F.junk() == 0 then F.flipWhy = "going to the junkyard" if not go(nil, "Junkyard") then return end end local best = pick() if not best then F.flipWhy = "nothing at the junkyard worth flipping right now (minimum profit / cash)" jobsAtFlip, F.flipRetry = ST.jobs, os.clock() + 60 return end F.flipBusy = true F.flipWhy = "buying the " .. best.name local before = invVehicles() local ok, msg = F.buyJunk(best) if not ok then F.flipWhy = "couldn't buy the " .. best.name .. ": " .. tostring(msg) F.flipRetry = os.clock() + 5 return end for _ = 1, 20 do for id in pairs(invVehicles()) do if not before[id] then db.cars[id] = {paid = best.price, restored = best.restored, name = best.name, parts = {}} end end if next(db.cars) then break end task.wait(0.25) end saveDb() F.log("Bought a " .. best.name .. " to flip (" .. commas(best.price) .. ")") notify("Junkyard flip", "Bought a " .. best.name .. " for " .. commas(best.price) .. " · about " .. commas(best.profit) .. " profit once it's done", C.clay) end local function sellStep(car, rec) local high = (rec.restored or 0) >= 250000 local buyer, zone, dest = high and "SpecialBuyer" or "UsedCarDealer", high and "SpecialBuyer_CarBounds" or "SellCar_CarBounds", high and "HighEndBuyer" or "Dealership" local c = zoneCenter(zone) if not c then F.flipWhy = "couldn't find the dealer's lot" return end F.flipWhy = "selling the " .. rec.name if (car:GetPivot().Position - c).Magnitude > 400 then go(car, dest, c + Vector3.new(0, 4, 0)) return end standBy(c + Vector3.new(14, 0, 0)) park(car, CFrame.new(c) * (car:GetPivot() - car:GetPivot().Position)) hopOut() -- respawning the car puts you in the driver's seat; the dealer wants you out local ok, q = call("GetUsedCarQuote", buyer) if not (ok and type(q) == "table" and q.Ok and type(q.Quote) == "table") then F.flipWhy = "the dealer said: " .. tostring(type(q) == "table" and q.Reason or q) return end local Q = q.Quote if Q.Uuid ~= car:GetAttribute("VehicleUUID") then F.flipWhy = "the dealer is looking at a different car" return end local ok2, res, msg, paid = call("SellUsedCar", Q.Uuid, Q.Offer, buyer) if not (ok2 and res) then F.flipWhy = "the sale fell through: " .. tostring(msg or res) return end local got, L = tonumber(paid) or Q.Offer, tonumber(Q.Listing) or 0 local costs = math.max(150, math.round(L * 0.05 / 10) * 10) + (rec.paint and math.max(50, math.round(L * 0.01 / 10) * 10) or 0) local profit = got - (rec.paid or 0) - costs FST.flips += 1 FST.profit += profit db.cars[Q.Uuid] = nil saveDb() jobsAtFlip = ST.jobs F.log("Flipped a " .. rec.name .. ": sold for " .. commas(got) .. " (" .. commas(profit) .. " profit)") notify("Junkyard flip", "Sold the " .. rec.name .. " for " .. commas(got) .. " · " .. commas(profit) .. " profit", C.clay) go(nil, "YourShop") end local function flipStep() local car, rec = flipCar() if not car then local inv = invVehicles() for id in pairs(db.cars) do if inv[id] then F.flipBusy = true F.flipWhy = "getting your flip car out" call("RequestSpawnVehicle", id) task.wait(3) return end db.cars[id] = nil saveDb() end F.flipBusy = false if #F.active() > 0 then F.flipWhy = "next car after the customer job" return end if S.AutoAccept and ST.jobs <= jobsAtFlip then F.flipWhy = "doing a customer job first" return end return buyStep() end F.flipBusy = true rec.parts = rec.parts or {} if car:GetAttribute("PaintRusted") then savePaint(car, rec) end if needsWork(car, rec) then local root = myRoot() if DATA:GetAttribute("Location") ~= "PlayerShop" or not root or (car:GetPivot().Position - root.Position).Magnitude > 150 then F.flipWhy = "taking the " .. rec.name .. " to your shop" go(car, "YourShop") return end return repairTick(car, rec) end if car:GetAttribute("PaintRusted") or (isPrimer(car) and rec.paint and not rec.painted) then local kind = car:GetAttribute("PaintRusted") and "Prep" or "Paint" F.flipWhy = kind == "Prep" and "stripping the rust" or "painting it back to its original colour" local a, n = boothArea(kind, car) if not a or (car:GetPivot().Position - a.Position).Magnitude > 250 then if not a then go(nil, "PaintShop") a = boothArea(kind, car) end if a then go(car, "PaintShop", (a.CFrame * CFrame.new(0, 4, -18)).Position) end if not a then F.flipWhy = "waiting for a free " .. (kind == "Prep" and "prep booth" or "paint booth") end return end standBy((a.CFrame * CFrame.new(0, 0, -18)).Position) park(car, a.CFrame) local ok, res, msg if kind == "Prep" then ok, res, msg = call("PaintShopPrep", car) else local picks = {} for slot, v in pairs(rec.paint) do picks[#picks + 1] = {Zone = "Exterior", SlotId = slot, Color = Color3.new(v[1], v[2], v[3]), Finish = finishFor(v[4])} end ok, res, msg = call("PaintShopSetPaint", car, "Exterior", picks) end if not (ok and res == true) then F.flipWhy = (kind == "Prep" and "prep booth: " or "paint booth: ") .. tostring(msg or res) return end for _ = 1, 40 do task.wait(0.5) if not (car:GetAttribute("Prepping") or car:GetAttribute("Painting")) then break end end if kind == "Paint" then rec.painted = true saveDb() end return end return sellStep(car, rec) end function F.flipTurn() return S.AutoFlip and (F.flipBusy or not S.AutoAccept or ST.jobs > jobsAtFlip) and not (F.flipRetry and os.clock() < F.flipRetry) end loop(1, function() if paused or not S.AutoFlip then F.flipWhy, F.flipBusy = nil, false return end if F.flipRetry and os.clock() < F.flipRetry then return end flipStep() end) end do local DMG = {"ApplyOverheatDamage", "ApplyBoostDamage", "ApplyOverRevDamage"} local real, R = {}, nil if H.liveRequire then pcall(function() R = require(RS.Remotes) end) end local function setDamage(on) if not R then return end for _, n in ipairs(DMG) do if on then if not real[n] and R[n] then real[n] = R[n] R[n] = {Name = n, FireServer = function() end} end elseif real[n] then R[n] = real[n] real[n] = nil end end end loop(1, function() setDamage(S.NoDamage and not paused) end) H.undamage = function() setDamage(false) end conn(RunS.Heartbeat, function() if not S.InfFuel then return end local car = myCar() if car then if (car:GetAttribute("Fuel") or 1) < 1 then car:SetAttribute("Fuel", 1) end local cap = car:GetAttribute("FuelCapacity") if cap and (car:GetAttribute("FuelLevel") or cap) < cap then car:SetAttribute("FuelLevel", cap) end end end) local M, orig if H.liveRequire then pcall(function() M = require(RS.Shared.ChassisTools.Modifications) orig = M.Resolve end) end if M and type(orig) == "function" then M.Resolve = function(...) local r = orig(...) if not (S.ModsOn and type(r) == "table") then return r end local c = table.clone(r) local function mul(k, f) if type(c[k]) == "number" then c[k] = c[k] * f end end for _, k in ipairs({"PeakTorqueValue", "TorqueAtIdle", "TorqueAtRedline", "EV_PeakTorque"}) do mul(k, S.Power) end for _, k in ipairs({"MaxLateralG", "MaxLateralGOnPower"}) do mul(k, S.Grip) end mul("FootBrakeForce", S.Brakes) mul("HandBrakeForce", S.Brakes) for _, k in ipairs({"InnerSteerAngle", "OuterSteerAngle"}) do if type(c[k]) == "number" then c[k] = math.min(c[k] * S.Steer, 60) end end if type(c.AeroDrag) == "number" and S.TopSpeed > 0 then c.AeroDrag = c.AeroDrag / S.TopSpeed end return c end H.unmod = function() M.Resolve = orig end H.modsOK = true end end local pTags = {} loop(0.25, function() local seen = {} if S.PlayerESP then local cars = {} for _, c in ipairs(workspace.__PLAYERCARS:GetChildren()) do local o = c:GetAttribute("OwnerUID") if o then cars[o] = c end end for _, p in ipairs(Players:GetPlayers()) do local ch = p.Character local hrp = ch and ch:FindFirstChild("HumanoidRootPart") if hrp and (p ~= LP or S.ESPSelf) then local car = cars[p.UserId] local seat = car and car:FindFirstChild("DriveSeat") local driving = seat and seat.Occupant and seat.Occupant.Parent == ch if driving or not S.DriversOnly then seen[p] = true local e = pTags[p] if not e or not e.bb.Parent then e = {bb = inst("BillboardGui", {AlwaysOnTop = true, Size = UDim2.fromOffset(220, 44), StudsOffset = Vector3.new(0, 4, 0)}, HUI), hl = inst("Highlight", {FillTransparency = 0.85, DepthMode = Enum.HighlightDepthMode.AlwaysOnTop}, HUI)} e.t = inst("TextLabel", {Size = UDim2.fromScale(1, 1), BackgroundTransparency = 1, Font = Enum.Font.GothamBold, TextSize = 13, TextStrokeTransparency = 0.3, TextColor3 = Color3.fromRGB(130, 200, 255)}, e.bb) pTags[p] = e H.insts[#H.insts + 1] = e.bb H.insts[#H.insts + 1] = e.hl end e.bb.Adornee = hrp e.hl.Adornee = driving and car or ch local mph = driving and math.floor(seat.AssemblyLinearVelocity.Magnitude * 0.626) or nil e.t.Text = p.DisplayName .. (driving and (" · " .. (car:GetAttribute("VehicleId") or car.Name) .. " · " .. mph .. " mph") or "") .. "\n" .. math.floor(dist(hrp.Position) * 0.28) .. "m" end end end end for p, e in pairs(pTags) do if not seen[p] then pcall(e.bb.Destroy, e.bb) pcall(e.hl.Destroy, e.hl) pTags[p] = nil end end end) do local SKY = {Game = nil, Morning = 8, Noon = 13, Sunset = 18.2, Night = 0} loop(1, function() local t = SKY[S.Sky] if t then Lighting.ClockTime = t end end) local boosted = 0 local LEVEL = {Off = 0, Light = 1, Medium = 2, Maximum = 3, Ultra = 4} function F.boost() local lv = LEVEL[S.FPSBoost] or 0 if lv <= boosted then return end if lv >= 1 then Lighting.GlobalShadows = false Lighting.EnvironmentSpecularScale = 0 end if lv >= 2 then for _, d in ipairs(workspace:GetDescendants()) do if d:IsA("ParticleEmitter") or d:IsA("Trail") or d:IsA("Smoke") or d:IsA("Fire") or d:IsA("Sparkles") then d.Enabled = false end end end if lv >= 3 then for _, d in ipairs(workspace:GetDescendants()) do if d:IsA("BasePart") and not d:IsA("MeshPart") then d.Material = Enum.Material.SmoothPlastic d.Reflectance = 0 elseif d:IsA("Decal") or d:IsA("Texture") then d.Transparency = 1 end end end if lv >= 4 then for _, e in ipairs(Lighting:GetChildren()) do if e:IsA("PostEffect") then e.Enabled = false elseif e:IsA("Atmosphere") then e.Density = 0 end end pcall(function() workspace.Terrain.WaterWaveSize = 0 workspace.Terrain.WaterReflectance = 0 workspace.Terrain.Decoration = false end) end boosted = lv end loop(2, function() F.boost() if setfpscap then pcall(setfpscap, S.FPSCap > 0 and S.FPSCap or 999) end pcall(RunS.Set3dRenderingEnabled, RunS, not S.No3D) end) conn(LP.Idled, function() if not S.AntiAFK then return end local VU = game:GetService("VirtualUser") VU:CaptureController() VU:ClickButton2(Vector2.new()) end) if queue_on_teleport then conn(LP.OnTeleport, function(state) if S.ReloadTP and state == Enum.TeleportState.Started then pcall(queue_on_teleport, 'task.wait(5) if isfile("MLHub.lua") then loadstring(readfile("MLHub.lua"))() end') end end) end end local function newServer(small) local ok, body = pcall(game.HttpGet, game, "https://games.roblox.com/v1/games/" .. game.PlaceId .. "/servers/Public?sortOrder=" .. (small and "Asc" or "Desc") .. "&limit=100") local ok2, t = pcall(Http.JSONDecode, Http, ok and body or "") local list = {} for _, sv in ipairs(ok2 and type(t) == "table" and t.data or {}) do if sv.id ~= game.JobId and (sv.playing or 0) < (sv.maxPlayers or 0) then list[#list + 1] = sv end end if small then table.sort(list, function(a, b) return (a.playing or 0) < (b.playing or 0) end) return list[1] and list[1].id end return #list > 0 and list[math.random(#list)].id or nil end function F.hop(mode) local TP = game:GetService("TeleportService") local id = mode == "rejoin" and game.JobId or newServer(mode == "small") notify("Server", mode == "rejoin" and "Rejoining…" or "Joining another server…") if not (id and pcall(TP.TeleportToPlaceInstance, TP, game.PlaceId, id, LP)) then pcall(TP.Teleport, TP, game.PlaceId, LP) end end do local CODEFILE = "MLHub_codes_" .. LP.UserId .. ".json" local cache = {} pcall(function() cache = Http:JSONDecode(readfile(CODEFILE)) end) F.codeStatus = "not checked yet" local function fetch() local list, seen = {}, {} local function add(c) c = tostring(c):gsub(" ", ""):gsub("&", "&"):gsub("^%s+", ""):gsub("%s+$", "") if #c > 1 and #c < 40 and not seen[c:lower()] then seen[c:lower()] = true list[#list + 1] = c end end local ok, body = pcall(game.HttpGet, game, "https://robloxden.com/game-codes/mechanic-legends") if ok then for exp, code in body:gmatch('data%-expired="(%a+)".-data%-copy="([^"]+)"') do if exp == "false" then add(code) end end end local ok2, b2 = pcall(game.HttpGet, game, "https://beebom.com/mechanic-legends-codes/") if ok2 and #b2 > 0 then local cut = b2:find("[Ee]xpired [^<]-[Cc]odes") for code in (cut and b2:sub(1, cut) or b2):gmatch("
  • %s*([^<]+)") do add(code) end end return list, ok, ok2 and #b2 > 0 end local busyCodes = false function F.redeem(code) for _ = 1, 4 do local ok, res, msg = call("RedeemCode", code) if ok and res == true then return "redeemed" end local m = tostring(msg or ""):lower() local wait = m:match("wait (%d+)s") if wait then task.wait(tonumber(wait) + 1) elseif m:find("already") then return "claimed" elseif m:find("exist") or m:find("expired") or m:find("invalid") then return "invalid" else return nil, msg end end end function F.redeemAll() if busyCodes then return end busyCodes = true F.codeStatus = "fetching the latest list…" local list, a, b = fetch() local todo = {} for _, c in ipairs(list) do if not cache[c:lower()] then todo[#todo + 1] = c end end local got = {} for i, c in ipairs(todo) do F.codeStatus = string.format("trying %d/%d: %s", i, #todo, c) local res = F.redeem(c) if res then cache[c:lower()] = res end if res == "redeemed" then got[#got + 1] = c F.log("Redeemed code " .. c) end task.wait(1) end pcall(writefile, CODEFILE, Http:JSONEncode(cache)) local tried = 0 for _ in pairs(cache) do tried += 1 end F.codeStatus = string.format("%d active online (RobloxDen %s, Beebom %s) · %d tried on this account%s", #list, a and "ok" or "failed", b and "ok" or "no page", tried, #got > 0 and (" · new: " .. table.concat(got, ", ")) or "") if #got > 0 then notify("Codes", "Redeemed " .. table.concat(got, ", "), C.clay) end busyCodes = false end task.spawn(function() task.wait(10) while H.alive do if S.AutoCodes and not paused then F.redeemAll() end task.wait(900) end end) end local T = UI.tab("Jobs") T:label("Made by Stizzyyy · always free & keyless.\nFound this behind a key system? It's a stolen copy.") local status = T:label("…") local logLabel = T:label("Activity\nNothing yet") loop(1, function() logLabel("Activity\n" .. (#LOG > 0 and table.concat(LOG, "\n") or "Nothing yet")) end) T:section("Customer jobs") T:choice("Pick jobs by", "JobPick", {"Highest pay", "Most EXP", "Pay per task", "Fewest tasks"}, save, "Which offer auto accept (and the list below) puts first.") T:slider("Minimum pay", "JobMinPay", 0, 20000, 250, save, "Offers below this are skipped.") T:toggle("Auto accept the best job​​", "AutoAccept", save, "Takes the best offer whenever you have no job running.") T:toggle("Auto order missing parts​​", "AutoOrder", save, "Orders the parts a job is missing, like the game's Order Parts button. Replacements for a job's missing parts are free.") T:toggle("Auto open part deliveries​​", "AutoCollect", save, "Opens deliveries as soon as they arrive at your shop.") T:slider("Job pace (minutes per job)", "JobPace", 0, 10, 0.5, save, "0 = as fast as the game allows (about 30 s a job). Higher = steps are spaced out and the car is handed over after about this long, so it looks like a person did it.") T:toggle("Auto do the job​​", "AutoWork", save, "Installs the missing parts, takes off + polishes worn parts to 100%, charges the battery and puts everything back. Parts never have to be carried.") T:toggle("Throw away scrapped parts​​", "TrashScrapped", save, "Old parts too damaged to repair get thrown away once the new one is fitted, so they don't fill your inventory.") T:toggle("Auto hand over finished jobs​​", "AutoComplete", save, "Gives the car back and collects the pay the moment every task is done.") T:section("Offers on the board") local offerList = T:list(150) local function refreshOffers() for _, c in ipairs(offerList:GetChildren()) do if c:IsA("Frame") then c:Destroy() end end local _, list = F.bestOffer() if #list == 0 then local all = #F.offers() listItem(offerList, all > 0 and string.format("%d offer%s, all under your minimum pay (%s)", all, all == 1 and "" or "s", commas(S.JobMinPay)) or "No offers right now · new customers show up every few minutes", nil, nil, 1) end for i, j in ipairs(list) do listItem(offerList, string.format("%s · %s · %s · %d tasks · %d EXP", j.who, j.car, commas(j.pay), j.tasks, j.exp), "Take", function() F.accept(j) end, i) end end loop(3, refreshOffers) T = UI.tab("Junkyard") T:toggle("Junkyard ESP​​", "JunkESP", save, "Price, profit, margin, condition, rust and spawn chance over every car, ★ on the best one you can afford.") T:slider("Show cars with profit from", "JunkMinProfit", -5000, 20000, 250, save) T:toggle("Only cars I can afford​​", "JunkAffordable", save) T:section("Sniper") T:toggle("Auto buy good cars​​", "Snipe", save, "Buys the most profitable car that fits the limits below (one every 7 s). Repairs are still up to you.") T:slider("Minimum profit", "SnipeMinProfit", 0, 30000, 250, save) T:slider("Maximum price", "SnipeMaxPrice", 1000, 300000, 1000, save) T:slider("Always keep at least", "SnipeReserve", 0, 200000, 1000, save, "Cash the sniper never spends.") T:toggle("Server hop when nothing's good​​", "SnipeHop", save, "After 25 s with no car worth buying, joins another server to check its junkyard.") T:section("Auto flip") T:toggle("Auto flip junkyard cars​​", "AutoFlip", save, "Buys the best car, repairs every part in your shop, strips the rust, paints the original colour back on and sells it at the dealer. Takes turns with customer jobs when auto accept is on.") T:slider("Only cars with profit from", "FlipMinProfit", 0, 20000, 250, save, "Cars missing parts are skipped (those need parts bought).") T:slider("Always keep at least", "FlipReserve", 0, 200000, 1000, save, "Cash the flip never spends.") local flipLbl = T:label("Flip: off") loop(1, function() local fs = F.flipStats or {flips = 0, profit = 0} flipLbl(string.format("Flip %s\n%d sold this session · %s profit", S.AutoFlip and (F.flipWhy or "starting…") or "off", fs.flips, commas(fs.profit))) end) T = UI.tab("Car") T:toggle("No engine damage​​", "NoDamage", save, "Overheating, over-boost and over-revving no longer hurt your engine.") T:toggle("Infinite fuel​​", "InfFuel", save, "Your tank never runs dry while you drive.") T:section("Car mods (apply when you next get in)") T:toggle("Car mods​​", "ModsOn", save, "Scales your car's stats when you get in. Keep it moderate: your car reports its telemetry to the server.") T:slider("Power", "Power", 0.5, 3, 0.05, save) T:slider("Top speed", "TopSpeed", 0.5, 3, 0.05, save, "Less air drag, so the car keeps pulling at speed.") T:slider("Grip", "Grip", 0.5, 3, 0.05, save) T:slider("Brakes", "Brakes", 0.5, 3, 0.05, save) T:slider("Steering", "Steer", 0.5, 2, 0.05, save) if not H.liveRequire then T:label("No engine damage and car mods " .. NEEDS .. ". Infinite fuel still works.") end T:section("Your cars") local carNames, carIds = {}, {} for _, it in ipairs(DATA:WaitForChild("Inventory"):GetChildren()) do if it:GetAttribute("Class") == "Vehicles" then local nm = (it:GetAttribute("ItemId") or "Car") .. " · " .. tostring(it:GetAttribute("UUID")):sub(1, 4) carNames[#carNames + 1] = nm carIds[nm] = it:GetAttribute("UUID") end end local pickCar = {Car = carNames[1] or "none"} T:choice("Car", "Car", #carNames > 0 and carNames or {"none"}, nil, nil, pickCar) T:button("Spawn this car", function() local id = carIds[pickCar.Car] if not id then return end local ok, res, msg = call("RequestSpawnVehicle", id) notify("Garage", (ok and res ~= false) and ("Spawned " .. pickCar.Car) or ("Couldn't spawn: " .. tostring(msg or res))) end) T:button("Put it away", function() local id = carIds[pickCar.Car] if not id then return end local ok, res, msg = call("RequestDespawnVehicle", id) notify("Garage", (ok and res ~= false) and "Put away" or ("Couldn't: " .. tostring(msg or res))) end) T = UI.tab("Travel") T:label("Uses the map's own fast travel, the same as clicking a place on the full map.") T:button("Your shop", function() local ok, res, msg = call("TravelToLocation", "YourShop") if not (ok and res) then notify("Travel", "Couldn't travel: " .. tostring(msg or res)) end end) local okL, Locs = pcall(require, RS.Shared.Types.Locations) local byMarker = okL and type(Locs) == "table" and Locs.ByMarker or {} for _, m in ipairs(workspace:WaitForChild("__MAPMARKERS"):GetChildren()) do local info = byMarker[m.Name] if type(info) == "table" and info.Destination then local label = m:GetAttribute("MarkerDisplayName") or m.Name T:button(label, function() local ok, res, msg = call("TravelToLocation", m.Name) if not (ok and res) then notify("Travel", "Couldn't travel: " .. tostring(msg or res)) end end) end end T = UI.tab("Visuals") T:toggle("Player ESP​​", "PlayerESP", save, "Name, distance, and their car + speed when driving.") T:toggle("Only show drivers​​", "DriversOnly", save) T:toggle("Include yourself​​", "ESPSelf", save) T:choice("Sky (time of day)", "Sky", {"Game", "Morning", "Noon", "Sunset", "Night"}, save) T:choice("FPS boost", "FPSBoost", {"Off", "Light", "Medium", "Maximum", "Ultra"}, save, "Light: shadows off · Medium: + effects off · Maximum: + plain materials · Ultra: + lighting effects off. Rejoin to undo.") T = UI.tab("Extras") T:section("Codes") T:toggle("Auto redeem codes​​", "AutoCodes", save, "Gets the active codes from RobloxDen / Beebom and redeems the new ones (checks every 15 min, each code only once).") local codeLbl = T:label("Codes: …") loop(1, function() codeLbl("Codes: " .. F.codeStatus) end) T:button("Check codes now", function() F.redeemAll() end) T:input("Redeem a code", "type a code + Enter", function(txt, enter) if not enter or txt == "" then return end local res, msg = F.redeem(txt) notify("Codes", res == "redeemed" and ("Redeemed " .. txt) or res == "claimed" and "Already redeemed on this account" or res == "invalid" and "That code doesn't exist" or ("Code didn't work: " .. tostring(msg))) end) T:section("Other") T:toggle("Reload the hub after teleports​​", "ReloadTP", save) T:toggle("Turn off 3D rendering​​", "No3D", save, "Black screen, much less GPU, for AFK runs.") T:slider("FPS cap (0 = off)", "FPSCap", 0, 240, 5, save) T:toggle("Anti-AFK​​", "AntiAFK", save) T:toggle("Notifications​​", "Notify", save) T:button("Rejoin", function() F.hop("rejoin") end) T:button("Server hop", function() F.hop("any") end) T:button("Join a small server", function() F.hop("small") end) T:button("Unload", function() H.Unload() end, "Stops everything and removes the menu") T:section("Your executor") do -- checked live on this executor, so the list is always right for whoever runs it local function row(ok, what, why) return (ok and "✓ " or "✗ ") .. what .. (ok and "" or (" (" .. why .. ")")) end T:label(table.concat({ row(H.liveRequire, "No engine damage + car mods", "doesn't work on this executor"), row(writefile ~= nil and readfile ~= nil, "Saves your settings + flip progress", "doesn't work on this executor"), row(pcall(function() return game.HttpGet end), "Auto codes + small servers", "type codes in Extras → Redeem a code; Server hop and Rejoin still work"), row(queue_on_teleport ~= nil, "Reloads itself after server hops", "put the hub in your executor's autoexec folder"), row(setfpscap ~= nil, "FPS cap", "use Roblox's own Settings → Maximum Frame Rate"), }, "\n")) end conn(UIS.InputBegan, function(i, gp) if i.KeyCode == Enum.KeyCode.RightShift then Win.Visible = not Win.Visible elseif i.KeyCode == Enum.KeyCode.F6 and not gp then paused = not paused notify("Mechanic Legends Hub", paused and "Stopped every automation (F6 to resume)" or "Automation back on") end end) loop(1, function() local mins = math.max((os.clock() - ST.t0) / 60, 0.01) local gained = cash() - ST.cash0 local act = F.active()[1] status(string.format("Session %s earned (%s/hour) · %d miles · %d jobs · %d cars bought%s%s", commas(gained), commas(gained / mins * 60), miles() - ST.miles0, ST.jobs, ST.bought, act and string.format("\nJob %s's %s · %d/%d tasks done · %s%s", act.who, act.car, act.done, act.tasks, commas(act.pay), (F.workWhy or F.handWhy) and ("\nNow " .. (F.workWhy or F.handWhy)) or "") or "", paused and "\nPaused (F6)" or "")) end) function H.Unload() H.alive = false if H.undamage then pcall(H.undamage) end if H.unmod then pcall(H.unmod) end pcall(RunS.Set3dRenderingEnabled, RunS, true) for _, c in ipairs(H.conns) do pcall(c.Disconnect, c) end for _, i in ipairs(H.insts) do pcall(i.Destroy, i) end if G.MLH == H then G.MLH = nil end end notify("Mechanic Legends Hub", (UIS.KeyboardEnabled and "Ready · RightShift menu · F6 stops automation" or "Ready · tap the menu button"), C.clay) task.delay(1.5, notify, "Executor check", (H.liveRequire and "" or "Some car features won't work on this executor. ") .. "See Extras → Your executor for what works and what doesn't.", C.clay) print("[Mechanic Legends Hub] by Stizzyyy · always free & keyless · rscripts.net/@Stizzyyy") end HubBody()