local Catalog = (function() local Catalog = { PlaceId = 121035400884186, UniverseId = 10649680176, PlaceVersion = 3075, ExtractedDate = "2026-11-22", Types = { "Executor", "External", "Tool" }, Rarities = { "Common", "Uncommon", "Rare", "Epic", "Legendary", "Mythic", "Secret", "Kernel" }, CloneReferenceRoot = "ReplicatedStorage.Storage.ClientModelReferenceFolder", CloneReferencesAreUnique = false, } Catalog.Items = { { type = "Executor", modelPath = "ReplicatedStorage.Storage.Exploits.Xeno_Normal_Rigged", rarity = "Common", id = "XENO", name = "Xeno", }, { type = "Executor", modelPath = "ReplicatedStorage.Storage.Exploits.Evon_Normal_2_Rigged", rarity = "Common", id = "EVON_LOADER", name = "Evon", }, { type = "Executor", modelPath = "ReplicatedStorage.Storage.Exploits.Nezur_Normal_Rigged", rarity = "Common", id = "NEZUR", name = "Nezur", }, { type = "Executor", modelPath = "ReplicatedStorage.Storage.Exploits.Solara_Normal_Rigged", rarity = "Common", id = "SOLARA", name = "Solara", }, { type = "Executor", modelPath = "ReplicatedStorage.Storage.Exploits.Real_Normal_Rigged", rarity = "Common", id = "REAL", name = "Real", }, { type = "Executor", modelPath = "ReplicatedStorage.Storage.Exploits.Proxo_Normal_Rigged", rarity = "Common", id = "PROXO", name = "Proxo", }, { type = "Executor", modelPath = "ReplicatedStorage.Storage.Exploits.Madium_Normal_Rigged", rarity = "Common", id = "MADIUM", name = "Madium", }, { type = "Executor", modelPath = "ReplicatedStorage.Storage.Exploits.Opiumware_Normal_Rigged", rarity = "Common", id = "OPIUMWARE", name = "Opiumware", }, { type = "Executor", modelPath = "ReplicatedStorage.Storage.Exploits.Delta_Normal_Rigged", rarity = "Common", id = "DELTA", name = "Delta", }, { type = "Executor", modelPath = "ReplicatedStorage.Storage.Exploits.MacSploit_Normal_Rigged", rarity = "Common", id = "MACSPLOIT", name = "MacSploit", }, { type = "Executor", modelPath = "ReplicatedStorage.Storage.Exploits.Athena_Normal_Rigged", rarity = "Common", id = "ATHENA", name = "Athena", }, { type = "Executor", modelPath = "ReplicatedStorage.Storage.Exploits.SirHurt_Normal_Rigged", rarity = "Common", id = "SIRHURT", name = "SirHurt", }, { type = "Executor", modelPath = "ReplicatedStorage.Storage.Exploits.JJsploit_Normal_Rigged", rarity = "Common", id = "JJSPLOIT", name = "JJsploit", }, { type = "Tool", modelPath = "ReplicatedStorage.Storage.Exploits.Sober_Normal_Rigged", rarity = "Uncommon", id = "SOBER", name = "Sober", }, { type = "External", modelPath = "ReplicatedStorage.Storage.Exploits.Ronin_Normal_Rigged", rarity = "Uncommon", id = "RONIN", name = "Ronin", }, { type = "Executor", modelPath = "ReplicatedStorage.Storage.Exploits.Rosemary_Normal_Rigged", rarity = "Uncommon", id = "ROSEMARY", name = "Rosemary", }, { type = "Executor", modelPath = "ReplicatedStorage.Storage.Exploits.Olemadium", rarity = "Uncommon", id = "OLEMADIUM", name = "Madium - Olemad Edition", }, { type = "Executor", modelPath = "ReplicatedStorage.Storage.Exploits.OxygenU_Normal_Rigged", rarity = "Uncommon", id = "OXYGENU", name = "Oxygen U", }, { type = "Executor", modelPath = "ReplicatedStorage.Storage.Exploits.Isaeva_Normal_Rigged", rarity = "Uncommon", id = "ISAEVA", name = "Isaeva", }, { type = "Executor", modelPath = "ReplicatedStorage.Storage.Exploits.Lynx_Normal_Rigged", rarity = "Uncommon", id = "LYNX", name = "Lynx", }, { type = "Executor", modelPath = "ReplicatedStorage.Storage.Exploits.Volcano_Normal_Rigged", rarity = "Uncommon", id = "VOLCANO", name = "Volcano", }, { type = "External", modelPath = "ReplicatedStorage.Storage.Exploits.Lumen_rig", rarity = "Uncommon", id = "LUMEN", name = "Lumen", }, { type = "External", modelPath = "ReplicatedStorage.Storage.Exploits.Severe", rarity = "Uncommon", id = "SEVERE", name = "Severe", }, { type = "Executor", modelPath = "ReplicatedStorage.Storage.Exploits.Trigon_Normal_Rigged", rarity = "Uncommon", id = "TRIGON", name = "Trigon", }, { type = "Executor", modelPath = "ReplicatedStorage.Storage.Exploits.Seliware_Normal_Rigged", rarity = "Uncommon", id = "SELIWARE", name = "Seliware", }, { type = "Executor", modelPath = "ReplicatedStorage.Storage.Exploits.VegaX_1", rarity = "Uncommon", id = "VEGAX", name = "Vega X", }, { type = "Executor", modelPath = "ReplicatedStorage.Storage.Exploits.Velocity_Normal_Rigged", rarity = "Uncommon", id = "VELOCITY", name = "Velocity", }, { type = "Executor", modelPath = "ReplicatedStorage.Storage.Exploits.RC7_TEMP_MODEL", rarity = "Uncommon", id = "RC7", name = "RC7", }, { type = "External", modelPath = "ReplicatedStorage.Storage.Exploits.Matcha_Normal_Rigged", rarity = "Uncommon", id = "MATCHA", name = "Matcha", }, { type = "Tool", modelPath = "ReplicatedStorage.Storage.Exploits.HappyMod_Normal_Rigged", rarity = "Rare", id = "HAPPYMOD", name = "HappyMod", }, { type = "Executor", modelPath = "ReplicatedStorage.Storage.Exploits.CubX_Normal_Rigged", rarity = "Rare", id = "CUBX", name = "CubX", }, { type = "Executor", modelPath = "ReplicatedStorage.Storage.Exploits.Cosmic_Normal_Rigged", rarity = "Rare", id = "COSMIC", name = "Cosmic", }, { type = "Executor", modelPath = "ReplicatedStorage.Storage.Exploits.Evon_BucketHat_Variant", rarity = "Rare", id = "Evon", name = "Evon - Sakpot Edition", }, { type = "Executor", modelPath = "ReplicatedStorage.Storage.Exploits.Salad_Normal_Rigged", rarity = "Rare", id = "SALAD", name = "Salad", }, { type = "External", modelPath = "ReplicatedStorage.Storage.Exploits.Matrix", rarity = "Rare", id = "MATRIX", name = "Matrix Hub", }, { type = "External", modelPath = "ReplicatedStorage.Storage.Exploits.DX9_Normal_Rigged", rarity = "Rare", id = "DX9", name = "DX9", }, { type = "Executor", modelPath = "ReplicatedStorage.Storage.Exploits.RbxCli_Normal_Rigged", rarity = "Epic", id = "RBXCLI", name = "RbxCli", }, { type = "Executor", modelPath = "ReplicatedStorage.Storage.Exploits.AppleWare_Normal_Rigged", rarity = "Epic", id = "APPLEWARE", name = "AppleWare", }, { type = "External", modelPath = "ReplicatedStorage.Storage.Exploits.RCM_Normal_Rigged", rarity = "Epic", id = "RCM", name = "RCM", }, { type = "Executor", modelPath = "ReplicatedStorage.Storage.Exploits.Fluxus_Normal_Rigged", rarity = "Epic", id = "FLUXUS", name = "Fluxus", }, { type = "Executor", modelPath = "ReplicatedStorage.Storage.Exploits.Zenith_Rig", rarity = "Epic", id = "Zenith", name = "Zenith", }, { type = "Executor", modelPath = "ReplicatedStorage.Storage.Exploits.Celery_Normal_Rigged", rarity = "Epic", id = "CELERY", name = "Celery", }, { type = "External", modelPath = "ReplicatedStorage.Storage.Exploits.Serotonin_Normal_Rigged", rarity = "Epic", id = "SEROTONIN", name = "Serotonin", }, { type = "Executor", modelPath = "ReplicatedStorage.Storage.Exploits.ChocoSploit_Normal_Rigged", rarity = "Epic", id = "CHOCOSPLOIT", name = "ChocoSploit", }, { type = "Executor", modelPath = "ReplicatedStorage.Storage.Exploits.Wave_Normal_Rigged", rarity = "Epic", id = "WAVE", name = "Wave", }, { type = "Executor", modelPath = "ReplicatedStorage.Storage.Exploits.Bleu_Normal_Rigged", rarity = "Legendary", id = "BLEU", name = "Bleu", }, { type = "Executor", modelPath = "ReplicatedStorage.Storage.Exploits.SynapseZ", rarity = "Legendary", id = "SYNZ", name = "Synapse Z", }, { type = "Executor", modelPath = "ReplicatedStorage.Storage.Exploits.Potassium_Normal_Rigged", rarity = "Legendary", id = "POTASSIUM", name = "Potassium", }, { type = "Executor", modelPath = "ReplicatedStorage.Storage.Exploits.AWP_Normal_Rigged", rarity = "Legendary", id = "AWP", name = "AWP", }, { type = "External", modelPath = "ReplicatedStorage.Storage.Exploits.Melatonin_Normal_Rigged", rarity = "Legendary", id = "MELATONIN", name = "Melatonin", }, { type = "Executor", modelPath = "ReplicatedStorage.Storage.Exploits.Calamari_Normal_Rigged", rarity = "Mythic", id = "CALAMARI", name = "Calamari", }, { type = "Executor", modelPath = "ReplicatedStorage.Storage.Exploits.Volt_Rigged", rarity = "Mythic", id = "VOLT", name = "VOLT", }, { type = "Executor", modelPath = "ReplicatedStorage.Storage.Exploits.Krampus_Normal_Rigged", rarity = "Secret", id = "KRAMPUS", name = "Krampus", }, { type = "Executor", modelPath = "ReplicatedStorage.Storage.Exploits.Protosmasher_Normal_Rigged", rarity = "Secret", id = "PROTOSMASHER", name = "Protosmasher", }, { type = "Executor", modelPath = "ReplicatedStorage.Storage.Exploits.ScriptWare_Normal_Rigged", rarity = "Secret", id = "SCRIPTWARE", name = "ScriptWare", }, { type = "Executor", modelPath = "ReplicatedStorage.Storage.Exploits.Visenya_Normal_Rigged", rarity = "Kernel", id = "VISENYA", name = "Visenya", }, { type = "Executor", modelPath = "ReplicatedStorage.Storage.Exploits.SynapseX", rarity = "Kernel", id = "SYNX", name = "Synapse X", }, { type = "Executor", modelPath = "ReplicatedStorage.Storage.Exploits.Elysian_Normal_Rigged", rarity = "Kernel", id = "ELYSIAN", name = "Elysian", }, } Catalog.Mutations = { { id = "HyperionBypass", name = "Hyperion Bypass", color = "44ff00" }, { id = "HyperionEmulator", name = "Hyperion Emulator", color = "1100ff" }, { id = "ClientModBypass", name = "Client Modification Bypass", color = "b300ff" }, { id = "Deleter2Bypass", name = "Deleter2 Bypass", color = "00ffaa" }, { id = "Undetected", name = "Undetected", color = "f2ff00" }, { id = "KeySystem", name = "Key System", color = "ffbe3c" }, { id = "Cracked", name = "Cracked", color = "00c8ff" }, { id = "OpenSource", name = "Open-Source", color = "78dc78" }, { id = "RustRewrite", name = "Rust Rewrite", color = "de783c" }, { id = "Detected", name = "Detected", color = "ff0000" }, { id = "Overheated", name = "Overheated", color = "ff7828" }, { id = "Frozen", name = "Frozen", color = "96e1ff" }, { id = "Overclocked", name = "Overclocked", color = "ffeb5a" }, { id = "Bitdancer", name = "Bitdancer", color = "be82ff" }, { id = "CrashesOnInject", name = "Crashes on Inject", color = "ff503c" }, { id = "Buggy", name = "Buggy", color = "c83c3c" }, { id = "SkiddedPasted", name = "Skidded & Pasted", color = "aa4646" }, { id = "MemoryLeak", name = "Memory Leak", color = "ff6e5a" }, } Catalog.Weathers = { { id = "HeatWave", name = "Heat wave", mutationId = "Overheated", mutationName = "Overheated", color = "ff7828", }, { id = "Snow", name = "Snow", mutationId = "Frozen", mutationName = "Frozen", color = "96e1ff" }, { id = "Storm", name = "Lightning storm", mutationId = "Overclocked", mutationName = "Overclocked", color = "ffeb5a", }, } local function normalized(value) return type(value) == "string" and value:match("^%s*(.-)%s*$"):lower() or nil end Catalog.ByName = {} Catalog.ById = {} Catalog.ByModelPath = {} Catalog.Names = {} for _, item in ipairs(Catalog.Items) do local name = normalized(item.name) assert( not Catalog.ByName[name] and not Catalog.ById[item.id] and not Catalog.ByModelPath[item.modelPath], "Ambiguous native catalogue" ) Catalog.ByName[name] = item Catalog.ById[item.id] = item Catalog.ByModelPath[item.modelPath] = item Catalog.Names[#Catalog.Names + 1] = item.name table.freeze(item) end Catalog.MutationNames = {} Catalog.MutationsById = {} for _, mutation in ipairs(Catalog.Mutations) do Catalog.MutationNames[#Catalog.MutationNames + 1] = mutation.name Catalog.MutationsById[mutation.id] = mutation table.freeze(mutation) end Catalog.WeathersById = {} Catalog.WeatherMutations = {} Catalog.WeatherMutationNames = {} for _, weather in ipairs(Catalog.Weathers) do local mutation = Catalog.MutationsById[weather.mutationId] assert( mutation and mutation.name == weather.mutationName and mutation.color == weather.color, "Weather mutation missing from native catalogue" ) Catalog.WeathersById[weather.id] = weather Catalog.WeatherMutations[#Catalog.WeatherMutations + 1] = mutation Catalog.WeatherMutationNames[#Catalog.WeatherMutationNames + 1] = mutation.name table.freeze(weather) end local function alphabetical(a, b) local x, y = a:lower(), b:lower() return x ~= y and x < y or x == y and a < b end table.sort(Catalog.Names, alphabetical) table.sort(Catalog.MutationNames, alphabetical) table.sort(Catalog.WeatherMutationNames, alphabetical) function Catalog.Resolve(name, canonicalRef) local named if name ~= nil then local key = normalized(name) named = key and Catalog.ByName[key] if not named then return nil, "Unknown exact item name" end end local referenced if canonicalRef ~= nil then local path if type(canonicalRef) == "string" then path = canonicalRef elseif typeof(canonicalRef) == "Instance" then local ok, value = pcall(function() return canonicalRef:GetFullName() end) if ok and type(value) == "string" then path = value end end referenced = path and Catalog.ByModelPath[path] if not referenced then return nil, "Unknown or noncanonical model reference" end if named and named ~= referenced then return nil, "Item name and canonical model disagree" end end local item = named or referenced return item, item and "Exact native catalogue identity" or "Item identity is unavailable" end for _, key in ipairs({ "Items", "Names", "Types", "Rarities", "ByName", "ById", "ByModelPath", "Mutations", "MutationNames", "MutationsById", "Weathers", "WeathersById", "WeatherMutations", "WeatherMutationNames", }) do table.freeze(Catalog[key]) end return table.freeze(Catalog) end)() local TargetPolicy = (function() return function(catalog) local Policy = {} local function normalize(value) return type(value) == "string" and value:match("^%s*(.-)%s*$"):lower() or nil end local names, types = {}, {} local rarities = { common = true, uncommon = true, rare = true, epic = true, legendary = true, mythic = true, secret = true, kernel = true, } local aliases = { ["hyperion bypass"] = "hyperionbypass", ["hyperion emulator"] = "hyperionemulator", ["client modification bypass"] = "clientmodbypass", ["deleter2 bypass"] = "deleter2bypass", ["key system"] = "keysystem", ["open-source"] = "opensource", ["rust rewrite"] = "rustrewrite", ["crashes on inject"] = "crashesoninject", ["skidded & pasted"] = "skiddedpasted", ["memory leak"] = "memoryleak", } local mutations = {} for _, value in ipairs({ "Hyperion Bypass", "Hyperion Emulator", "Client Modification Bypass", "Deleter2 Bypass", "Undetected", "Key System", "Cracked", "Open-Source", "Rust Rewrite", "Detected", "Overheated", "Frozen", "Overclocked", "Bitdancer", "Crashes on Inject", "Buggy", "Skidded & Pasted", "Memory Leak", }) do local key = normalize(value) mutations[aliases[key] or key] = true end local function mutationKey(value) local key = normalize(value) return key and (aliases[key] or key) or nil end function Policy.UpdateCatalog(current) catalog = current or catalog names, types = {}, {} for _, item in ipairs(type(catalog) == "table" and catalog.Items or {}) do if type(item) == "table" and normalize(item.name) then names[normalize(item.name)] = item if normalize(item.type) then types[normalize(item.type)] = true end end end if type(catalog.Mutations) == "table" then mutations = {} for _, mutation in ipairs(catalog.Mutations) do local name, id = normalize(mutation.name), normalize(mutation.id) if name and id then aliases[name] = id mutations[id] = true end end end end Policy.UpdateCatalog(catalog) local function list(value, allowed, convert) if value == nil then return {}, 0 end if type(value) ~= "table" then return nil end local result, entries, maximum, count = {}, 0, 0, 0 for index, entry in pairs(value) do if type(index) ~= "number" or index < 1 or index > 512 or index % 1 ~= 0 then return nil end entries += 1 maximum = math.max(maximum, index) local key = (convert or normalize)(entry) if not key or key == "" or #key > 256 or (allowed and not allowed[key]) then return nil end if not result[key] then result[key] = true count += 1 end end if maximum ~= entries then return nil end return result, count end local function compile(config, prefix) if type(config) ~= "table" or (prefix ~= "Farm" and prefix ~= "Steal") then return nil, "Invalid target filter configuration" end if config[prefix .. "FiltersInvalid"] then return nil, "Correct invalid target filters" end local result = {} for _, spec in ipairs({ { "ItemNames", names }, { "Types", types }, { "Rarities", rarities }, { "Mutations", mutations, mutationKey }, }) do local key = spec[1] local set, count = list(config[prefix .. key], spec[2], spec[3]) if not set then return nil, "Invalid " .. prefix:lower() .. " " .. key .. " selection" end result[key], result[key .. "Count"] = set, count end local mode = config[prefix .. "MutationMode"] == nil and "any selected" or normalize(config[prefix .. "MutationMode"]) if mode ~= "any selected" and mode ~= "all selected" then return nil, "Invalid mutation matching mode" end result.mode = mode return result end function Policy.Resolve(name) return names[normalize(name)] end function Policy.Validate(config, prefix) local rules, reason = compile(config, prefix) return rules ~= nil, reason or "Target filters are valid" end function Policy.HasFilters(config, prefix) local rules, reason = compile(config, prefix) if not rules then return false, reason end return rules.ItemNamesCount + rules.TypesCount + rules.RaritiesCount + rules.MutationsCount > 0, "Target filters are valid" end function Policy.Matches(item, config, prefix) local rules, reason = compile(config, prefix) if not rules then return false, reason end item = type(item) == "table" and item or {} for _, spec in ipairs({ { "ItemNames", "name" }, { "Types", "type" }, { "Rarities", "rarity" } }) do local key, field = spec[1], spec[2] if rules[key .. "Count"] > 0 and not rules[key][normalize(item[field])] then return false, "Excluded by " .. field .. " filter" end end if rules.MutationsCount > 0 then local actual = list(item.mutations, nil, mutationKey) if not actual or item.mutations == nil then return false, "Mutation metadata unavailable" end local matched = 0 for value in pairs(rules.Mutations) do if actual[value] then matched += 1 end end if (rules.mode == "any selected" and matched == 0) or (rules.mode == "all selected" and matched < rules.MutationsCount) then return false, "Excluded by mutation filter" end end return true, "Matches acquisition filters" end return Policy end end)()(Catalog) local GrowthPolicy = (function() local Policy = {} local MAX_VALUE = 1e40 local SAFETY_SECONDS = 30 local function finite(value) return type(value) == "number" and value == value and value > -math.huge and value < math.huge end local function amount(value, positive) return finite(value) and value <= MAX_VALUE and (positive and value > 0 or not positive and value >= 0) end function Policy.ShouldInvest(args) if type(args) ~= "table" then return false, "Growth inputs are unavailable" end local money, goal = args.money, args.goal local income, added, cost = args.currentIncome, args.addedIncome, args.cost local delivery = args.deliverySeconds == nil and 150 or args.deliverySeconds local reserve = args.cashReserve == nil and 0 or args.cashReserve for _, spec in ipairs({ { money, false, "cash" }, { goal, true, "rebirth cash goal" }, { income, false, "current income" }, { added, true, "added income" }, { cost, false, "purchase price" }, { delivery, false, "delivery estimate" }, { reserve, false, "cash reserve" }, }) do if not amount(spec[1], spec[2]) then return false, "Invalid or unknown " .. spec[3] end end if money >= goal then return false, "Rebirth cash is already ready" end if money < reserve or cost > money - reserve then return false, "Growth purchase exceeds the available cash budget" end local remaining = goal - money local payback = cost / added + delivery local details = { remainingCash = remaining, paybackSeconds = payback, safetyMarginSeconds = SAFETY_SECONDS } if not finite(payback) or not finite(payback + SAFETY_SECONDS) then return false, "Growth timing is not finite" end if income == 0 then local projected = delivery + (remaining + cost) / added if not finite(projected) then return false, "Growth timing is not finite" end details.baselineUnreachable = true details.projectedSeconds = projected return true, "Positive income can reach the otherwise stalled rebirth cash goal", details end local baseline = remaining / income local totalIncome = income + added local projected = (remaining + cost) / totalIncome + delivery * (added / totalIncome) local beforeDelivery = (remaining + cost) / income if finite(beforeDelivery) and beforeDelivery <= delivery then projected = beforeDelivery end if not finite(baseline) or not finite(projected) then return false, "Growth timing is not finite" end details.baselineSeconds = baseline details.projectedSeconds = projected if payback + SAFETY_SECONDS >= baseline or projected >= baseline then return false, "Growth purchase would not reach the rebirth cash goal sooner", details end return true, "Growth purchase reaches the rebirth cash goal sooner", details end Policy.SafetyMarginSeconds = SAFETY_SECONDS Policy.DefaultDeliverySeconds = 150 return table.freeze(Policy) end)() local Display = (function() local Display = {} local allowed = { font = true, b = true, i = true, u = true, s = true, stroke = true, smallcaps = true, uppercase = true, mark = true, } local entities = { lt = "<", gt = ">", amp = "&", quot = "\"", apos = "'", nbsp = " " } local scales = { k = 1e3, m = 1e6, b = 1e9, t = 1e12, qa = 1e15, qi = 1e18, sx = 1e21, sp = 1e24, oc = 1e27, no = 1e30, dc = 1e33, ud = 1e36, dd = 1e39, } function Display.VisibleText(value) if type(value) ~= "string" or #value > 16384 then return nil end local result, stack, position, size = {}, {}, 1, 24 while position <= #value do local opening = value:find("<", position, true) local ending = opening and opening - 1 or #value if size > 0 then table.insert(result, value:sub(position, ending)) end if not opening then break end if value:sub(opening, opening + 3) == "", opening + 4, true) if not close then return nil end position = close + 3 else local cursor, quote = opening + 1, nil while cursor <= #value do local char = value:sub(cursor, cursor) if quote then if char == quote then quote = nil end elseif char == "'" or char == "\"" then quote = char elseif char == ">" then break elseif char == "<" then return nil end cursor += 1 end if cursor > #value then return nil end local tag = value:sub(opening + 1, cursor - 1) local closing, name, rest = tag:match("^%s*(/?)%s*([%a]+)(.-)%s*$") if not name then return nil end name = name:lower() if name == "br" and closing == "" and (rest:match("^%s*/?%s*$")) then if size > 0 then table.insert(result, "\n") end elseif closing == "/" then if not rest:match("^%s*$") or #stack == 0 or stack[#stack].name ~= name then return nil end size = table.remove(stack).size elseif allowed[name] then table.insert(stack, { name = name, size = size }) local used = {} while not rest:match("^%s*$") do local prefix, key, delimiter = rest:match("^(%s+([%w_%-]+)%s*=%s*(['\"]))") if not prefix or used[key:lower()] then return nil end used[key:lower()] = true local close = rest:find(delimiter, #prefix + 1, true) if not close then return nil end local attribute = rest:sub(#prefix + 1, close - 1) if name == "font" and key:lower() == "size" then if not attribute:match("^[+-]?%d+%.?%d*$") then return nil end size = tonumber(attribute) if not size or math.abs(size) > 10000 then return nil end end rest = rest:sub(close + 1) end else return nil end position = cursor + 1 end end if #stack > 0 then return nil end local bad = false local text = table.concat(result):gsub("&([^;]+);", function(entity) if entities[entity] then return entities[entity] end local code = entity:match("^#(%d+)$") local hex = entity:match("^#[xX]([%da-fA-F]+)$") local number = code and tonumber(code) or (hex and tonumber(hex, 16)) if number and number > 0 and number <= 0x10ffff and not (number >= 0xd800 and number <= 0xdfff) then local ok, decoded = pcall(utf8.char, number) if ok then return decoded end end bad = true return "" end) return not bad and text or nil end function Display.ParseMoney(value, requireDollar) local text = Display.VisibleText(value) if not text then return nil end text = text:match("^%s*(.-)%s*$") local _, dollars = text:gsub("%$", "") local numberText if dollars == 1 then numberText = text:match("%$([^$]+)$") elseif dollars == 0 and requireDollar == false then numberText = text else return nil end if not numberText or numberText:find("%s") then return nil end local digits, suffix = numberText:match("^(%d+%.?%d*)(%a*)$") if not digits or digits:sub(-1) == "." then return nil end local decimal = digits:match("%.(%d+)$") if decimal and #decimal ~= 2 then return nil end local scale = suffix == "" and 1 or scales[suffix:lower()] if not scale or (suffix ~= "" and not decimal) then return nil end local amount = tonumber(digits) if not amount then return nil end amount *= scale if amount ~= amount or amount < 0 or amount == math.huge or amount > 1e40 then return nil end local exact = suffix == "" and not decimal local upper = amount if not exact then upper += 0.005 * scale + math.max(1, amount) * 1e-12 end return { amount = amount, upper = upper, exact = exact, display = (dollars == 1 and "$" or "") .. numberText } end function Display.Quote(value) return Display.ParseMoney(value, true) end return Display end)() local createNavigator = (function() local PathfindingService = game:GetService("PathfindingService") local function finiteNumber(value) return value == value and value > -math.huge and value < math.huge end local function validPoint(value) return typeof(value) == "Vector3" and finiteNumber(value.X) and finiteNumber(value.Y) and finiteNumber(value.Z) end local function flat(value) return Vector3.new(value.X, 0, value.Z) end local function destroy(instance) if instance then pcall(function() instance:Destroy() end) end end local function createNavigator(player, config) config = config or {} local self = { Active = false, LastReason = "idle", _epoch = 0, _busy = false, _destroyed = false, _moveBinding = nil, _jumpBinding = nil, _moveAction = nil, _jumpAction = nil, _context = nil, _path = nil, _blockedConnection = nil, } local function releaseInputs() for _, pair in ipairs({ { self._moveBinding, Vector2.zero }, { self._jumpBinding, false }, }) do local binding = pair[1] if binding and binding.Parent then pcall(function() binding:Fire(pair[2]) end) end end end local function disconnectBlocked() if self._blockedConnection then self._blockedConnection:Disconnect() self._blockedConnection = nil end end local function clearPath() disconnectBlocked() destroy(self._path) self._path = nil end local function clearBindings() releaseInputs() destroy(self._moveBinding) destroy(self._jumpBinding) self._moveBinding, self._jumpBinding = nil, nil self._moveAction, self._jumpAction, self._context = nil, nil, nil end local function resolveBindings() local inputs = player:FindFirstChild("InputContexts") local context = inputs and inputs:FindFirstChild("CharacterContext") local move = context and context:FindFirstChild("MoveAction") local jump = context and context:FindFirstChild("JumpAction") if not ( context and context:IsA("InputContext") and move and move:IsA("InputAction") and jump and jump:IsA("InputAction") ) then return false, "controls-unavailable" end if move.Type ~= Enum.InputActionType.Direction2D or jump.Type ~= Enum.InputActionType.Bool then return false, "unsupported-input-types" end if not context.Enabled or not move.Enabled or not jump.Enabled then return false, "controls-disabled" end if self._moveAction == move and self._jumpAction == jump and self._moveBinding and self._moveBinding.Parent == move and self._jumpBinding and self._jumpBinding.Parent == jump then return true end clearBindings() local moveBinding = Instance.new("InputBinding") moveBinding.Name = "SAE_Nav_Move" moveBinding.Type = Enum.InputBindingType.Scriptable self._moveBinding = moveBinding moveBinding.Parent = move local jumpBinding = Instance.new("InputBinding") jumpBinding.Name = "SAE_Nav_Jump" jumpBinding.Type = Enum.InputBindingType.Scriptable self._jumpBinding = jumpBinding jumpBinding.Parent = jump self._moveAction, self._jumpAction, self._context = move, jump, context return true end function self:Stop() self._epoch += 1 self.Active = false self.LastReason = "stopped" disconnectBlocked() releaseInputs() end function self:Destroy() if self._destroyed then return end self:Stop() self._destroyed = true clearBindings() if not self._busy then clearPath() end self.LastReason = "destroyed" end function self:GoTo(targetProvider, arrivalRadius, maxSeconds, abort) if self._destroyed then return false, "destroyed" end if self._busy then return false, "busy" end if type(targetProvider) ~= "function" then return false, "invalid-provider" end arrivalRadius = math.max(0.5, tonumber(arrivalRadius) or 3) maxSeconds = math.clamp(tonumber(maxSeconds) or 35, 1, 180) local character = player.Character local humanoid = character and character:FindFirstChildOfClass("Humanoid") local root = character and character:FindFirstChild("HumanoidRootPart") if not (character and root and humanoid and humanoid.Health > 0) then return false, "character-unavailable" end self._busy = true self._epoch += 1 local epoch = self._epoch self.Active = true local deadline = os.clock() + maxSeconds local replanInterval = math.max(0.5, tonumber(config.ReplanInterval) or 1) local targetMoveThreshold = math.max(2, tonumber(config.TargetMoveThreshold) or 6) local maxReplans = math.clamp(tonumber(config.MaxReplans) or 20, 1, 80) local maxNoPath = math.clamp(tonumber(config.MaxNoPath) or 3, 1, 8) local waypointRadius = math.clamp(tonumber(config.WaypointRadius) or 1.8, 1, 3) local tickInterval = math.clamp(tonumber(config.TickInterval) or 0.05, 0.025, 0.15) local jumpUntil = 0 local function cancelled() if self._destroyed or self._epoch ~= epoch or not self.Active then return "stopped" end if type(config.OnUpdate) == "function" then local ok = pcall(config.OnUpdate) if not ok then return "update-error" end if self._destroyed or self._epoch ~= epoch or not self.Active then return "stopped" end end if os.clock() >= deadline then return "timeout" end if player.Character ~= character or not character:IsDescendantOf(workspace) or root.Parent ~= character or humanoid.Health <= 0 then return "character-changed" end if abort then local ok, result = pcall(abort) if not ok then return "abort-error" end if result then return "aborted" end end return nil end local function target() local ok, value = pcall(targetProvider) return ok and validPoint(value) and value or nil end local function arrived(point, radius) local delta = root.Position - point return flat(delta).Magnitude <= radius and math.abs(delta.Y) <= math.max(4, radius) and humanoid.FloorMaterial ~= Enum.Material.Air end local function steer(point) if cancelled() then return false, "stopped" end if not ( self._context and self._context.Parent and self._context.Enabled and self._moveAction and self._moveAction.Parent == self._context and self._moveAction.Enabled and self._jumpAction and self._jumpAction.Parent == self._context and self._jumpAction.Enabled and self._moveBinding and self._moveBinding.Parent == self._moveAction and self._jumpBinding and self._jumpBinding.Parent == self._jumpAction ) then return false, "controls-changed" end local delta = flat(point - root.Position) local input = Vector2.zero if delta.Magnitude > 0.05 then local camera = workspace.CurrentCamera local forward = flat(camera and camera.CFrame.LookVector or root.CFrame.LookVector) if forward.Magnitude < 0.001 then forward = Vector3.zAxis end forward = forward.Unit local right = forward:Cross(Vector3.yAxis) local direction = delta.Unit input = Vector2.new(direction:Dot(right), direction:Dot(forward)) if not finiteNumber(input.X) or not finiteNumber(input.Y) then return false, "invalid-input" end if input.Magnitude > 1 then input = input.Unit end input *= math.clamp(delta.Magnitude / math.max(3, humanoid.WalkSpeed * 0.13), 0.2, 1) end self._moveBinding:Fire(input) self._jumpBinding:Fire(os.clock() < jumpUntil) return true end local function passageAllowed(passage) local ok, allowed = pcall(passage.Allowed) return ok and allowed == true end local function getPassage(destination) if type(config.GetPassage) ~= "function" then return nil end local ok, passage = pcall(config.GetPassage, root.Position, destination) if not ok then return nil, "passage-provider-error" end if passage == nil then return nil end if type(passage) ~= "table" or not validPoint(passage.Entry) or not validPoint(passage.Exit) or type(passage.Allowed) ~= "function" then return nil, "invalid-passage" end if not passageAllowed(passage) then return nil, "passage-not-allowed" end return passage end local function crossPassage(passage) releaseInputs() clearPath() jumpUntil = 0 local crossingDeadline = math.min(deadline, os.clock() + 5) while os.clock() < crossingDeadline do local reason = cancelled() if reason then return false, reason end if not target() then return false, "target-unavailable" end if not passageAllowed(passage) then return false, "passage-not-allowed" end if arrived(passage.Exit, 1.2) then releaseInputs() return true end local moved, moveReason = steer(passage.Exit) if not moved then return false, moveReason end task.wait(tickInterval) end return false, "passage-timeout" end local function run() local ready, bindReason = resolveBindings() if not ready then return false, bindReason end local replans, noPaths = 0, 0 while replans < maxReplans do local stopReason = cancelled() if stopReason then return false, stopReason end local destination = target() if not destination then return false, "target-unavailable" end if arrived(destination, arrivalRadius) then return true, "arrived" end local passage, passageError = getPassage(destination) if passageError then return false, passageError end local pathDestination = passage and passage.Entry or destination replans += 1 releaseInputs() clearPath() local path = PathfindingService:CreatePath({ AgentRadius = tonumber(config.AgentRadius) or 2, AgentHeight = tonumber(config.AgentHeight) or 5, AgentCanJump = true, AgentCanClimb = true, WaypointSpacing = tonumber(config.WaypointSpacing) or 4, Costs = config.Costs or { Water = 20 }, }) self._path = path local feet = root.Position - Vector3.new(0, humanoid.HipHeight + root.Size.Y * 0.5 - 0.2, 0) local computed = pcall(function() path:ComputeAsync(feet, pathDestination) end) stopReason = cancelled() if stopReason then return false, stopReason end if not computed or path.Status ~= Enum.PathStatus.Success then noPaths += 1 if noPaths >= maxNoPath then return false, "no-path" end task.wait(0.35) continue end noPaths = 0 local waypoints = path:GetWaypoints() if #waypoints == 0 then return false, "empty-path" end local index, blocked = 2, false if #waypoints == 1 then index = 1 end self._blockedConnection = path.Blocked:Connect(function(blockedIndex) if blockedIndex >= index then blocked = true end end) local planTime = os.clock() local progressTime, bestDistance = os.clock(), math.huge local jumpedForStuck, jumpedWaypoint = false, nil while index <= #waypoints do stopReason = cancelled() if stopReason then return false, stopReason end local latest = target() if not latest then return false, "target-unavailable" end if arrived(latest, arrivalRadius) then return true, "arrived" end if passage then if not passageAllowed(passage) then return false, "passage-not-allowed" end if arrived(passage.Entry, 1.2) then local crossed, crossReason = crossPassage(passage) if not crossed then return false, crossReason end break end end if blocked or ( os.clock() - planTime >= replanInterval and (latest - destination).Magnitude >= targetMoveThreshold ) then break end local waypoint = waypoints[index] local distance = flat(waypoint.Position - root.Position).Magnitude if waypoint.Action == Enum.PathWaypointAction.Jump and jumpedWaypoint ~= index then jumpUntil = os.clock() + 0.18 jumpedWaypoint = index end local finalRadius = passage and 1.2 or arrivalRadius local acceptanceRadius = if index == #waypoints then math.min(waypointRadius, finalRadius) else waypointRadius if distance <= acceptanceRadius and math.abs(root.Position.Y - waypoint.Position.Y) <= 6 then index += 1 progressTime, bestDistance = os.clock(), math.huge jumpedForStuck = false continue end if distance < bestDistance - 0.35 then bestDistance, progressTime = distance, os.clock() end if os.clock() - progressTime > 1.5 then if not jumpedForStuck and humanoid.FloorMaterial ~= Enum.Material.Air then jumpUntil, progressTime, jumpedForStuck = os.clock() + 0.18, os.clock(), true else break end end local moved, moveReason = steer(waypoint.Position) if not moved then return false, moveReason end task.wait(tickInterval) end end return false, "replan-limit" end local ok, success, reason = xpcall(run, debug.traceback) releaseInputs() clearPath() self._busy = false if self._epoch == epoch then self.Active = false self.LastReason = ok and reason or "navigation-error" end if not ok then warn("[SAE Navigator] " .. tostring(success)) return false, "navigation-error" end return success, reason end return self end return createNavigator end)() local createFarmUI = (function() return function(API, player, baseStatsFn) local state, config = API.State, API.Config local automationKeys = { "AutoTutorial", "AutoClaimQuests", "AutoRebirth", "AutoShopUpgrades", "AutoBits", "AutoSellBits", "AutoVault", "AutoSteal", "AutoBuy", "AutoCollect", "AutoLock", "AutoArrange", "Top3ESP", } state.StartupReady = false config.ProgressionFarm = false for _, key in ipairs(automationKeys) do config[key] = false end local URL = "https://sirmemegithub.com/RealSlimShady2000/VibeUI/raw/branch/main/VibeUI.luau" local chunk, compileError = loadstring(game:HttpGet(URL), "SAEFarm.VibeUI") assert(chunk, compileError or "VibeUI did not compile") local VibeUI = chunk() assert(type(VibeUI) == "table" and type(VibeUI.Unload) == "function", "Invalid VibeUI library") local originalUnload = VibeUI.Unload local destroyed, worker = false, nil local handle = { Library = VibeUI, Controls = {}, Labels = {} } function handle:Destroy() if destroyed then return end destroyed = true self.Destroyed = true if worker and coroutine.running() ~= worker then pcall(task.cancel, worker) end worker = nil if type(setthreadidentity) == "function" then pcall(setthreadidentity, 8) end local ok, err = pcall(originalUnload, VibeUI) if not ok then warn("[SAEFarm] VibeUI unload: " .. tostring(err)) end end function VibeUI:Unload() if destroyed then return end local ok, err = pcall(API.Destroy, API) handle:Destroy() if not ok then pcall(API.Pause, API) warn("[SAEFarm] Stop during VibeUI unload: " .. tostring(err)) end end local function active() return not destroyed and state.Alive end local function automationValue(value) return state.StartupReady == true and value == true end local function callback(fn) return function(...) if active() then return fn(...) end end end local function finite(value) if type(value) ~= "number" and type(value) ~= "string" then return nil end local n = tonumber(value) return n and n == n and n >= 0 and n < math.huge and n or nil end local rarityItems = { "Common", "Uncommon", "Rare", "Epic", "Legendary", "Mythic", "Secret", "Kernel" } local rarityColors = { Common = Color3.fromRGB(0, 171, 40), Uncommon = Color3.fromRGB(90, 205, 200), Rare = Color3.fromRGB(0, 131, 171), Epic = Color3.fromRGB(134, 0, 171), Legendary = Color3.fromRGB(251, 255, 0), Mythic = Color3.fromRGB(255, 0, 0), Secret = Color3.fromRGB(255, 70, 190), Kernel = Color3.fromRGB(255, 255, 255), } local initialSellThreshold = finite(config.MinBitsToSell) config.MinBitsToSell = initialSellThreshold and math.clamp(math.floor(initialSellThreshold + 0.5), 1, 1000) or 5 local defaultRarities = { "Legendary", "Mythic", "Secret", "Kernel" } local mutationModes = { "Any selected", "All selected" } local matchModes = { "All enabled filters", "Any enabled filter" } local maxSafeSerial = 9007199254740991 local function protectedPlayers(value) if type(value) ~= "table" then return nil end local result, seen, count = {}, {}, 0 for index, text in pairs(value) do count += 1 if type(index) ~= "number" or index < 1 or index % 1 ~= 0 or index > 64 or count > 64 or type(text) ~= "string" then return nil end local name = text:match("^%s*(.-)%s*$") if name:match("^%d+$") then local id = finite(name) if not id or id < 1 or id % 1 ~= 0 or id > maxSafeSerial then return nil end name = string.format("%.0f", id) elseif #name < 3 or #name > 20 or not name:match("^[A-Za-z0-9_]+$") then return nil end local key = name:lower() if not seen[key] then seen[key] = true result[#result + 1] = name end end table.sort(result, function(a, b) return a:lower() < b:lower() end) return result end if config.AutoSteal == nil then config.AutoSteal = false else config.AutoSteal = config.AutoSteal == true end local initialProtectedPlayers = protectedPlayers(config.StealWhitelist == nil and {} or config.StealWhitelist) config.StealWhitelistInvalid = config.StealWhitelistInvalid == true or initialProtectedPlayers == nil config.StealWhitelist = initialProtectedPlayers or {} if config.StealWhitelistInvalid then config.AutoSteal = false end local constructingStealControls, stealToggleSyncQueued = true, false local vaultErrors = {} local constructingVaultControls = true local vaultToggleSyncQueued = false local vaultToggleSyncActive = false local function selection(value, items, limit) if type(value) ~= "table" then return nil end limit = limit or 64 local allowed, selected, result, count = {}, {}, {}, 0 if items then for _, item in ipairs(items) do allowed[item] = true end end for index, item in pairs(value) do count += 1 if type(index) ~= "number" or index < 1 or index % 1 ~= 0 or index > limit or count > limit or type(item) ~= "string" or item == "" or #item > 128 or item:find("[\r\n]") or (items and not allowed[item]) then return nil end if not selected[item] then selected[item] = true result[#result + 1] = item end end table.sort(result) return result end local catalog = type(API.Catalog) == "table" and API.Catalog or {} local mutationSource, mutationColors = {}, {} if API.Catalog ~= nil then for _, name in ipairs(type(catalog.MutationNames) == "table" and catalog.MutationNames or {}) do if type(name) == "string" then mutationSource[#mutationSource + 1] = name end end for _, mutation in ipairs(type(catalog.Mutations) == "table" and catalog.Mutations or {}) do if type(mutation) == "table" and type(mutation.name) == "string" then mutationSource[#mutationSource + 1] = mutation.name local hex = type(mutation.color) == "string" and mutation.color:match("^#?(%x%x%x%x%x%x)$") local rgb = hex and tonumber(hex, 16) if rgb then mutationColors[mutation.name] = Color3.fromRGB(math.floor(rgb / 65536), math.floor(rgb / 256) % 256, rgb % 256) end end end else mutationSource = config.VaultMutationOptions or {} end local mutationItems = selection(mutationSource, nil, 512) or {} local weatherMappings = {} for _, weather in ipairs(type(catalog.Weathers) == "table" and catalog.Weathers or {}) do if type(weather) == "table" and type(weather.name) == "string" and type(weather.mutationName) == "string" then weatherMappings[#weatherMappings + 1] = weather.name .. " -> " .. weather.mutationName end end local weatherHelp = #weatherMappings > 0 and ("Weather: " .. table.concat(weatherMappings, "; ") .. ".") or nil if config.AutoVault == nil then config.AutoVault = false elseif type(config.AutoVault) ~= "boolean" then config.AutoVault = false vaultErrors.AutoVault = "Auto vault must be on or off; correct the setting before continuing." end for _, spec in ipairs({ { "VaultRarities", rarityItems, defaultRarities }, { "VaultMutations", mutationItems, {} }, { "VaultItemNames", nil, {} }, }) do local key, items, fallback = spec[1], spec[2], spec[3] local value = config[key] == nil and fallback or config[key] local normalized = selection(value, items) if not normalized then config.AutoVault = false vaultErrors[key] = "Invalid saved vault filter; correct " .. key .. " before continuing." end config[key] = normalized or {} end for key, options in pairs({ VaultMutationMode = mutationModes, VaultMatchMode = matchModes }) do if config[key] ~= nil and not table.find(options, config[key]) then config.AutoVault = false vaultErrors[key] = "Invalid saved vault matching mode; choose a valid option." end config[key] = table.find(options, config[key]) and config[key] or options[1] end local initialSerial = config.VaultMaxSerial == nil and 0 or finite(config.VaultMaxSerial) if not initialSerial or initialSerial % 1 ~= 0 or initialSerial > maxSafeSerial then config.AutoVault = false initialSerial = 0 vaultErrors.VaultMaxSerial = "Maximum serial must be a whole number from 0 to 9,007,199,254,740,991; correct the setting before continuing." end config.VaultMaxSerial = initialSerial config.VaultSettingsInvalid = next(vaultErrors) ~= nil local targetNames, targetTypes, targetColors, seenNames, seenTypes = {}, {}, {}, {}, {} for index, item in ipairs(type(catalog.Items) == "table" and catalog.Items or {}) do if index > 512 then break end if type(item) == "table" and type(item.name) == "string" and item.name ~= "" then if not seenNames[item.name] then seenNames[item.name] = true targetNames[#targetNames + 1] = item.name targetColors[item.name] = rarityColors[item.rarity] end if type(item.type) == "string" and item.type ~= "" and not seenTypes[item.type] then seenTypes[item.type] = true targetTypes[#targetTypes + 1] = item.type end end end table.sort(targetNames) table.sort(targetTypes) local targetMutationItems = mutationItems local targetSpecs = { { "ItemNames", "Items", targetNames, targetColors, true }, { "Types", "Item categories", targetTypes }, { "Rarities", "Rarities", rarityItems, rarityColors }, { "Mutations", "Mutations", targetMutationItems, mutationColors }, } local targetErrors, constructingTargets = { Farm = {}, Steal = {} }, { Farm = true, Steal = true } local catalogRefreshing = false local targetNativeSetters = {} for _, prefix in ipairs({ "Farm", "Steal" }) do local errors = targetErrors[prefix] if config[prefix .. "FiltersInvalid"] == true then errors.Initial = "Review and correct the target filters before selecting new targets." end for _, spec in ipairs(targetSpecs) do local key, options = prefix .. spec[1], spec[3] local value = config[key] == nil and {} or config[key] local normalized = selection(value, options, math.max(64, #options)) if not normalized then errors[key] = "Invalid saved " .. spec[2]:lower() .. " filter; correct this selection." end config[key] = normalized or {} end local modeKey = prefix .. "MutationMode" if config[modeKey] ~= nil and not table.find(mutationModes, config[modeKey]) then errors[modeKey] = "Invalid saved mutation matching mode; choose a valid option." end config[modeKey] = table.find(mutationModes, config[modeKey]) and config[modeKey] or mutationModes[1] config[prefix .. "FiltersInvalid"] = next(errors) ~= nil end local lastText, inputMessage = {}, "Enter numbers, then press Enter to apply." local function setLabel(key, text) if not active() or lastText[key] == text then return end handle.Labels[key]:SetText(text) lastText[key] = text end local function vaultInput(key, message) local preserveError = (constructingVaultControls or (key == "AutoVault" and vaultToggleSyncActive)) and vaultErrors[key] if message ~= nil or not preserveError then vaultErrors[key] = message end config.VaultSettingsInvalid = next(vaultErrors) ~= nil if config.VaultSettingsInvalid then config.AutoVault = false if not vaultToggleSyncQueued then vaultToggleSyncQueued = true task.defer(function() if active() and next(vaultErrors) then vaultToggleSyncActive = true VibeUI:SetValue("SAE_AutoVault", false) vaultToggleSyncActive = false end vaultToggleSyncQueued = false end) end end local _, errorMessage = next(vaultErrors) setLabel("VaultInput", errorMessage or "Filters saved. With no filters enabled, nothing is selected.") if type(API.QueueVaultCheck) == "function" then API:QueueVaultCheck() end end local function pauseInvalidStealing() if not config.StealWhitelistInvalid then return end config.AutoSteal = false if not stealToggleSyncQueued then stealToggleSyncQueued = true task.defer(function() if active() and config.StealWhitelistInvalid then VibeUI:SetValue("SAE_AutoSteal", false) end stealToggleSyncQueued = false end) end setLabel( "StealInput", "Correct the protected-player list before enabling auto steal. Use usernames or positive user IDs, not display names." ) end local function numeric(section, key, name, unlimited) handle.Controls[key] = section:Textbox({ Name = name, Flag = "SAE_" .. key, Default = unlimited and config[key] == math.huge and "No limit" or tostring(config[key]), Placeholder = unlimited and "No limit, or a number" or "0", Finished = true, Callback = callback(function(value) local text = type(value) == "string" and value:match("^%s*(.-)%s*$") or value local noLimit = unlimited and type(text) == "string" and (text == "" or text:lower() == "no limit") local n = noLimit and math.huge or finite(text) if n then config[key] = n inputMessage = name .. " saved." else inputMessage = name .. ": enter a finite number of 0 or more." end setLabel("Input", inputMessage) end), }) end local function targetFilterInput(prefix, key, message) local errors = targetErrors[prefix] if not constructingTargets[prefix] then errors.Initial = nil end if message ~= nil or not (constructingTargets[prefix] and errors[key]) then errors[key] = message end config[prefix .. "FiltersInvalid"] = next(errors) ~= nil local _, errorMessage = next(errors) local acquisition = prefix == "Farm" and "purchases" or "steals" setLabel( prefix .. "FiltersInput", errorMessage and (errorMessage .. " New " .. acquisition .. " paused until corrected.") or "Empty selections are unrestricted. All nonempty filters must match." ) end local function targetFilterSection(tab, prefix, name) local section = tab:Section({ Name = name, Side = 2 }) handle.Labels[prefix .. "FiltersInput"] = section:Label("Empty selections are unrestricted. All nonempty filters must match.") for _, spec in ipairs(targetSpecs) do local key, label, items = prefix .. spec[1], spec[2], spec[3] local control = section:Dropdown({ Name = label, Flag = "SAE_" .. key, Multi = true, Search = spec[5] == true, Items = items, ItemColors = spec[4], Default = config[key], Callback = callback(function(value) if catalogRefreshing then return end local normalized = selection(value, items, math.max(64, #items)) if normalized then config[key] = normalized targetFilterInput(prefix, key, nil) else targetFilterInput(prefix, key, "Invalid " .. label:lower() .. " selection ignored.") end end), }) local originalSet = control.Set targetNativeSetters[key] = originalSet function control:Set(value) if not active() then return end local normalized = selection(value, items, math.max(64, #items)) if not normalized then targetFilterInput(prefix, key, "Invalid " .. label:lower() .. " selection ignored.") return end return originalSet(self, normalized) end handle.Controls[key] = control if spec[1] == "Mutations" and weatherHelp then handle.Labels[prefix .. "WeatherHelp"] = section:Label(weatherHelp) end end local modeKey = prefix .. "MutationMode" local modeControl = section:Dropdown({ Name = "Mutation matching", Flag = "SAE_" .. modeKey, Items = mutationModes, Default = config[modeKey], Callback = callback(function(value) if table.find(mutationModes, value) then config[modeKey] = value targetFilterInput(prefix, modeKey, nil) else targetFilterInput(prefix, modeKey, "Invalid mutation matching mode ignored.") end end), }) local originalModeSet = modeControl.Set function modeControl:Set(value) if not active() then return end if not table.find(mutationModes, value) then targetFilterInput(prefix, modeKey, "Invalid mutation matching mode ignored.") return end return originalModeSet(self, value) end handle.Controls[modeKey] = modeControl section:Label( "The item list includes every catalogued executor, external, and collectible Tool, colored by rarity." ) if prefix == "Farm" then section:Label( "Filters apply to normal purchases. Own income collection, locking, and tutorial starter purchases continue. Excluded rebirth requirements can delay rebirth." ) else section:Label( "Filters apply to new targets. Changing them never drops an already acknowledged carried item. Protected players are always excluded." ) end constructingTargets[prefix] = false end function handle:RefreshCatalog() if not active() then return end catalog = API.Catalog local function replace(target, source) table.clear(target) for key, value in pairs(source) do target[key] = value end end local names, types, colors, seen, seenTypes = {}, {}, {}, {}, {} for _, item in ipairs(catalog.Items or {}) do if not seen[item.name] then seen[item.name] = true names[#names + 1] = item.name colors[item.name] = rarityColors[item.rarity] end if not seenTypes[item.type] then seenTypes[item.type] = true types[#types + 1] = item.type end end table.sort(names) table.sort(types) replace(targetNames, names) replace(targetTypes, types) replace(targetColors, colors) local choices, palette, mappings = {}, {}, {} for _, mutation in ipairs(catalog.Mutations or {}) do choices[#choices + 1] = mutation.name local rgb = tonumber(mutation.color, 16) if rgb then palette[mutation.name] = Color3.fromRGB(math.floor(rgb / 65536), math.floor(rgb / 256) % 256, rgb % 256) end end table.sort(choices) replace(mutationItems, choices) replace(mutationColors, palette) for _, weather in ipairs(catalog.Weathers or {}) do mappings[#mappings + 1] = weather.name .. " -> " .. weather.mutationName end weatherHelp = #mappings > 0 and ("Weather: " .. table.concat(mappings, "; ") .. ".") or "Weather mutations: none in the current catalogue." catalogRefreshing = true local ok, err = pcall(function() for _, prefix in ipairs({ "Farm", "Steal" }) do for _, spec in ipairs(targetSpecs) do local key = prefix .. spec[1] local control = handle.Controls[key] if control and type(control.Refresh) == "function" then control:Refresh(spec[3]) end if control and targetNativeSetters[key] then targetNativeSetters[key](control, table.clone(config[key])) end end end local control = handle.Controls.VaultMutations if control and type(control.Refresh) == "function" then control:Refresh(mutationItems) end if control then control:Set(table.clone(config.VaultMutations)) end end) catalogRefreshing = false if not ok then error(err) end for _, prefix in ipairs({ "Farm", "Steal" }) do for _, spec in ipairs(targetSpecs) do local key = prefix .. spec[1] if not selection(config[key], spec[3], math.max(64, #spec[3])) then targetFilterInput( prefix, key, "A selected value is absent from the current catalogue. Review " .. spec[2]:lower() .. "." ) end end end if not selection(config.VaultMutations, mutationItems) then vaultInput( "VaultMutations", "A selected mutation is absent from the current catalogue; review vault mutations." ) end for _, prefix in ipairs({ "Farm", "Steal", "Vault" }) do if handle.Labels[prefix .. "WeatherHelp"] then setLabel(prefix .. "WeatherHelp", weatherHelp) end end end local ok, setupError = xpcall(function() VibeUI:SetTheme({ Background = Color3.fromRGB(18, 22, 30), Inline = Color3.fromRGB(24, 30, 40), Element = Color3.fromRGB(33, 42, 56), ["Hovered Element"] = Color3.fromRGB(43, 55, 72), ["Page Background"] = Color3.fromRGB(18, 22, 30), Border = Color3.fromRGB(9, 12, 18), Outline = Color3.fromRGB(47, 61, 80), Text = Color3.fromRGB(235, 241, 250), Accent = Color3.fromRGB(92, 208, 235), }) VibeUI:SetTransparency(0.22) VibeUI:SetGlassBlur(0) VibeUI:SetGlass(true) local window = VibeUI:Window({ Title = "Steal an Exploit / Farm v" .. tostring(API.Version or "0.1.0"), Size = UDim2.fromOffset(780, 590), Keybind = Enum.KeyCode.RightControl, }) handle.Window = window local farm = window:Tab({ Name = "Farm", Columns = 2 }) local controls = farm:Section({ Name = "Farm controls", Side = 1 }) handle.Labels.Mode = controls:Label("Paused - press Start when ready.") handle.Controls.StartFullFarm = controls:Button():Add( "Start rebirth farm", callback(function() if state.StartupReady and type(API.StartFullFarm) == "function" then API:StartFullFarm() end end) ) local actions = controls:Button() handle.Controls.StartSelected = actions:Add( "Start selected", callback(function() if not state.StartupReady then return end local start = type(API.StartSelected) == "function" and API.StartSelected or API.Start if type(start) == "function" then start(API) end end) ) handle.Controls.Start = handle.Controls.StartSelected handle.Controls.Pause = actions:Add( "Pause", callback(function() API:Pause() end) ) controls:Label( "Rebirth farm uses all currently available base pads. Required units bypass target filters and minimum income, while money limits still apply. Optional vault protection can hold rebirths." ) for _, spec in ipairs({ { "AutoTutorial", "Auto complete tutorial" }, { "AutoBuy", "Auto buy" }, { "AutoCollect", "Auto collect" }, { "AutoLock", "Auto lock (prepare at 10s)" }, { "AutoArrange", "Auto arrange valuable items" }, { "AutoClaimQuests", "Auto claim quest rewards" }, }) do local key, name = spec[1], spec[2] handle.Controls[key] = controls:Toggle({ Name = name, Flag = "SAE_" .. key, Default = config[key] == true, Callback = callback(function(value) config[key] = automationValue(value) end), }) end controls:Label("Feature settings can load from a saved config. Press Start to begin farming.") controls:Label( "Auto arrange puts higher rarity items on higher, farther-back pads using native Grab and Place. A free pad is required; carried items are never dropped or sold." ) handle.Controls.ResetDelivery = controls:Button():Add( "Reset delivery", callback(function() API:ResetDelivery() end) ) controls:Label("Reset a delivery only after checking the unit and any refund in the game.") handle.Controls.Unload = controls:Button():Add( "Stop and unload", callback(function() VibeUI:Unload() end) ) local status = farm:Section({ Name = "Status", Side = 2 }) for _, key in ipairs({ "Status", "Lock", "Arrange", "Tutorial", "Account", "Slots", "Delivered", "Collected", "QuestRewards", "Delivery", "Error", }) do handle.Labels[key] = status:Label(key .. ": waiting") end local progression = window:Tab({ Name = "Progression", Columns = 2 }) local rebirthShop = progression:Section({ Name = "Rebirth and shop", Side = 1 }) local bits = progression:Section({ Name = "Bits", Side = 2 }) for _, spec in ipairs({ { "AutoRebirth", "Auto rebirth", rebirthShop }, { "AutoShopUpgrades", "Auto buy shop upgrades", rebirthShop }, { "AutoBits", "Auto collect bits", bits }, { "AutoSellBits", "Auto sell bits", bits }, }) do local key, name, section = spec[1], spec[2], spec[3] handle.Controls[key] = section:Toggle({ Name = name, Flag = "SAE_" .. key, Default = config[key] == true, Callback = callback(function(value) config[key] = automationValue(value) end), }) end handle.Controls.MinBitsToSell = bits:Slider({ Name = "Sell threshold (bits)", Flag = "SAE_MinBitsToSell", Min = 1, Max = 1000, Decimals = 1, Default = config.MinBitsToSell, Callback = callback(function(value) local n = finite(value) if n then config.MinBitsToSell = math.clamp(math.floor(n + 0.5), 1, 1000) end end), }) bits:Label( "At or above the threshold, the farm visits Bitdancer and sells all held bits. You can type an exact number into the slider." ) handle.Labels.Progression = rebirthShop:Label("Progression: Waiting") handle.Labels.Bits = bits:Label("Bits collected: 0 | Bits sold: 0\nStatus: Waiting") local stealing = window:Tab({ Name = "Stealing", Columns = 2 }) local stealControls = stealing:Section({ Name = "Stealing controls", Side = 1 }) handle.Labels.StealInput = stealControls:Label("Listed players are protected from auto steal.") handle.Controls.AutoSteal = stealControls:Toggle({ Name = "Auto steal", Flag = "SAE_AutoSteal", Default = config.AutoSteal, Callback = callback(function(value) config.AutoSteal = automationValue(value) and not config.StealWhitelistInvalid if automationValue(value) and config.StealWhitelistInvalid then pauseInvalidStealing() end end), }) handle.Controls.StealWhitelist = stealControls:Textbox({ Name = "Protected players (usernames or IDs)", Flag = "SAE_StealWhitelist", Default = table.concat(config.StealWhitelist, ", "), Finished = true, Placeholder = "Username, another_username, 12345678", Callback = callback(function(value) local names if type(value) == "string" and #value <= 4096 then names = {} for item in value:gmatch("[^,]+") do local name = item:match("^%s*(.-)%s*$") if name ~= "" then names[#names + 1] = name end end names = protectedPlayers(names) end if names and not (constructingStealControls and config.StealWhitelistInvalid) then config.StealWhitelist = names config.StealWhitelistInvalid = false setLabel( "StealInput", "Protected-player list saved. Listed usernames and user IDs are never targeted." ) else config.StealWhitelistInvalid = true pauseInvalidStealing() end end), }) stealControls:Label( "Listed usernames and user IDs are never targeted. An empty list protects no other players. Your own base is always ignored." ) handle.Labels.StealStatus = stealControls:Label("Stealing: Waiting") handle.Labels.StealsCompleted = stealControls:Label("Steals completed: 0") constructingStealControls = false targetFilterSection(stealing, "Steal", "Steal target filters") local purchasing = window:Tab({ Name = "Purchasing", Columns = 2 }) local limits = purchasing:Section({ Name = "Purchase constraints", Side = 1 }) handle.Labels.Input = limits:Label(inputMessage) numeric(limits, "CashReserve", "Cash reserve", false) numeric(limits, "MaxPurchasePrice", "Maximum purchase price", true) numeric(limits, "MinIncome", "Minimum unit income / second", false) handle.Controls.MaxOwnedUnits = limits:Slider({ Name = "Maximum owned units", Flag = "SAE_MaxOwnedUnits", Min = 1, Max = 100, Decimals = 1, Default = config.MaxOwnedUnits, Callback = callback(function(value) local n = finite(value) if n then config.MaxOwnedUnits = math.clamp(math.floor(n + 0.5), 1, 100) end end), }) limits:Label( "Maximum owned units applies to Start selected. Start rebirth farm uses all currently available base pads." ) limits:Label( "Maximum price accepts a blank value or No limit. Prices use a conservative allowance for rounded displays." ) targetFilterSection(purchasing, "Farm", "Farm target filters") local vault = window:Tab({ Name = "Vault", Columns = 2 }) local filters = vault:Section({ Name = "What to protect", Side = 1 }) local vaultDetails = vault:Section({ Name = "Preview and status", Side = 2 }) handle.Labels.VaultInput = vaultDetails:Label("Only items matching your selected filters will be stored.") handle.Controls.AutoVault = filters:Toggle({ Name = "Auto vault matching items", Flag = "SAE_AutoVault", Default = config.AutoVault, Callback = callback(function(value) if type(value) ~= "boolean" then vaultInput("AutoVault", "Auto vault must be on or off; auto vault paused.") return end value = automationValue(value) if not constructingVaultControls and not vaultToggleSyncActive then vaultErrors.AutoVault = nil vaultErrors.Enable = nil end config.AutoVault = value == true and next(vaultErrors) == nil if value == true and not config.AutoVault then vaultInput("Enable", "Correct invalid vault filters before enabling auto vault.") else vaultInput("AutoVault", nil) end end), }) for _, spec in ipairs({ { "VaultRarities", "Rarities", rarityItems }, { "VaultMutations", "Mutations", mutationItems }, }) do local key, name, items = spec[1], spec[2], spec[3] handle.Controls[key] = filters:Dropdown({ Name = name, Flag = "SAE_" .. key, Multi = true, Items = items, ItemColors = key == "VaultRarities" and rarityColors or mutationColors, Default = config[key], Callback = callback(function(value) if catalogRefreshing then return end local normalized = selection(value, items) if normalized then config[key] = normalized vaultErrors.Enable = nil vaultInput(key, nil) else vaultInput(key, "Invalid " .. name:lower() .. " selection ignored; auto vault paused.") end end), }) if key == "VaultMutations" and weatherHelp then handle.Labels.VaultWeatherHelp = filters:Label(weatherHelp) end end if #mutationItems == 0 then filters:Label("Mutation choices are waiting for game data.") end for _, spec in ipairs({ { "VaultMutationMode", "Mutation matching", mutationModes }, { "VaultMatchMode", "Combine filters", matchModes }, }) do local key, name, items = spec[1], spec[2], spec[3] handle.Controls[key] = filters:Dropdown({ Name = name, Flag = "SAE_" .. key, Items = items, Default = config[key], Callback = callback(function(value) if table.find(items, value) then config[key] = value vaultErrors.Enable = nil vaultInput(key, nil) else vaultInput(key, "Invalid vault matching mode ignored; auto vault paused.") end end), }) end handle.Controls.VaultMaxSerial = vaultDetails:Textbox({ Name = "Maximum serial (0 disables this filter)", Flag = "SAE_VaultMaxSerial", Default = tostring(config.VaultMaxSerial), Finished = true, Callback = callback(function(value) local n = finite(value) if n and n % 1 == 0 and n <= maxSafeSerial then config.VaultMaxSerial = n vaultErrors.Enable = nil vaultInput("VaultMaxSerial", nil) else vaultInput( "VaultMaxSerial", "Maximum serial must be a whole number from 0 to 9,007,199,254,740,991; auto vault paused." ) end end), }) handle.Controls.VaultItemNames = vaultDetails:Textbox({ Name = "Exact item names (comma separated, optional)", Flag = "SAE_VaultItemNames", Default = table.concat(config.VaultItemNames, ", "), Finished = true, Callback = callback(function(value) local names if type(value) == "string" and #value <= 4096 then names = {} for item in value:gmatch("[^,]+") do local name = item:match("^%s*(.-)%s*$") if name ~= "" then names[#names + 1] = name end end names = selection(names, nil) end if names then config.VaultItemNames = names vaultErrors.Enable = nil vaultInput("VaultItemNames", nil) else vaultInput("VaultItemNames", "Invalid exact-name list ignored; auto vault paused.") end end), }) handle.Controls.PreviewVault = vaultDetails:Button():Add( "Preview matches", callback(function() if type(API.PreviewVault) == "function" then API:PreviewVault() end end) ) for _, key in ipairs({ "VaultStatus", "VaultStored", "VaultPreview", "VaultCapacity" }) do handle.Labels[key] = vaultDetails:Label("Vault: waiting") end filters:Label( "Lower serial numbers are rarer. Choose rarity, mutation, serial, or exact-name filters; only matching items are stored." ) filters:Label( "Vault items do not earn income or count toward rebirth requirements. Auto rebirth waits while matching items remain unprotected." ) constructingVaultControls = false local visuals = window:Tab({ Name = "Visuals", Columns = 1 }) local esp = visuals:Section({ Name = "Top 3 server items", Side = 1 }) handle.Controls.Top3ESP = esp:Toggle({ Name = "Top 3 ESP / chams", Flag = "SAE_Top3ESP", Default = false, Callback = callback(function(value) config.Top3ESP = automationValue(value) end), }) local rankings = { "Highest income per second", "Highest rarity first" } config.ESPRanking = table.find(rankings, config.ESPRanking) and config.ESPRanking or rankings[1] handle.Controls.ESPRanking = esp:Dropdown({ Name = "Rank items by", Flag = "SAE_ESPRanking", Items = rankings, Default = config.ESPRanking, Callback = callback(function(value) if table.find(rankings, value) then config.ESPRanking = value end end), }) esp:Label( "Shows the top three replicated pad and conveyor items with gold, cyan, and magenta chams. Labels show income, rarity, mutations, and owner." ) handle.Labels.ESP = esp:Label("ESP: off") local data = visuals:Section({ Name = "Live catalogue", Side = 1 }) data:Label( "Refreshes from the game's already-loaded item and mutation data every 30 seconds. The bundled catalogue is the fallback." ) handle.Controls.RefreshCatalog = data:Button():Add( "Refresh catalogue", callback(function() if type(API.RefreshCatalog) == "function" then API:RefreshCatalog() end end) ) handle.Labels.Catalog = data:Label("Catalogue: waiting") handle.Settings = VibeUI:CreateSettingsPage(window) task.defer(function() if not active() then return end for _, key in ipairs(automationKeys) do config[key] = false VibeUI:SetValue("SAE_" .. key, false) end VibeUI:SetValue("GlassBlur", 0) state.StartupReady = true end) end, debug.traceback) if not ok then pcall(API.Pause, API) handle:Destroy() error(setupError) end worker = task.spawn(function() while active() do local refreshed, refreshError = xpcall(function() local money, occupied, total = baseStatsFn() setLabel( "Mode", not state.StartupReady and "Loading settings - automation stays off." or ( state.Running and ((config.ProgressionFarm and "Rebirth farm running" or "Selected features running") .. " - Pause stops movement and interaction.") or "Paused - press Start when ready." ) ) setLabel("Status", "Status: " .. tostring(state.Status or "Waiting")) setLabel( "Lock", "Base lock: " .. tostring(state.LockRemaining or "?") .. "s | " .. tostring( state.LockStatus or (config.AutoLock and "Preparing in the last 10 seconds" or "auto lock off") ) ) setLabel( "Arrange", "Placement: " .. tostring(state.ArrangeStatus or "Waiting") .. " | Moves: " .. tostring(state.ItemsArranged or 0) ) local tutorialNames = { [0] = "waiting for save", [1] = "buy an exploit", [2] = "collect cash", [3] = "lock your base", [4] = "claim a quest", [100] = "complete", } local tutorialStep = state.TutorialStep local tutorialText = tutorialNames[tutorialStep] or "waiting for save" setLabel( "Tutorial", "Tutorial: " .. tutorialText .. (config.AutoTutorial and "" or " (automatic completion off)") ) setLabel( "Account", tostring(player.DisplayName or player.Name) .. " | Cash $" .. string.format("%.0f", money or 0) ) setLabel("Slots", string.format("Owned slots: %d / %d", occupied or 0, total or 0)) setLabel("Delivered", "Deliveries confirmed: " .. tostring(state.Purchases or 0)) setLabel( "Collected", string.format( "Collected: $%.0f | Collections: %d", state.Collected or 0, state.Collections or 0 ) ) setLabel( "QuestRewards", "Quest rewards claimed: " .. tostring(state.QuestClaims or 0) .. " | Last check: " .. tostring(state.QuestClaimStatus or "Waiting") ) setLabel("Progression", "Progression: " .. tostring(state.ProgressionStatus or "Waiting")) setLabel( "Bits", "Bits collected: " .. tostring(state.BitsCollected or 0) .. " | Bits sold: " .. tostring(state.BitsSold or 0) .. "\nStatus: " .. tostring(state.BitsStatus or "Waiting") ) setLabel("StealStatus", "Stealing: " .. tostring(state.StealStatus or "Waiting")) setLabel("StealsCompleted", "Steals completed: " .. tostring(state.StealsCompleted or 0)) setLabel("ESP", "ESP: " .. tostring(state.ESPStatus or "off")) setLabel("Catalog", "Catalogue: " .. tostring(state.CatalogStatus or "bundled fallback")) setLabel("VaultStatus", "Vault: " .. tostring(state.VaultStatus or "Waiting")) setLabel("VaultStored", "Items stored this run: " .. tostring(state.VaultStored or 0)) setLabel( "VaultPreview", "Preview: " .. tostring(state.VaultPreviewSummary or "Press Preview matches to inspect the selection.") ) local used, capacity = finite(state.VaultUsed), finite(state.VaultCapacity) setLabel( "VaultCapacity", used and capacity and ("Capacity: " .. tostring(used) .. " / " .. tostring(capacity)) or "Capacity: waiting for vault information" ) setLabel( "Delivery", state.Pending and "Delivery reservation: awaiting confirmation" or "Delivery reservation: clear" ) setLabel( "Error", state.LastError and ("Last error: " .. tostring(state.LastError)) or "Last error: none" ) end, debug.traceback) if not refreshed then state.LastError = tostring(refreshError) pcall(API.Pause, API) pcall(API.Destroy, API) handle:Destroy() warn("[SAEFarm] UI stopped: " .. tostring(refreshError)) return end task.wait(0.4) end end) return handle end end)() local claimFirstQuest = (function() return function(player, shouldAbort) local function cancelled() return shouldAbort and shouldAbort() == true end local function identity() if type(setthreadidentity) == "function" then pcall(setthreadidentity, 8) end end local function gameUI() identity() local pg = player:FindFirstChild("PlayerGui") return pg and pg:FindFirstChild("GameUI") end local gui local function waitFor(predicate, seconds) local deadline = os.clock() + seconds repeat if cancelled() then return nil, "Cancelled" end if gui and gameUI() ~= gui then return nil, "Game UI changed" end local value = predicate() if value then return value end task.wait(0.05) until os.clock() >= deadline return nil, "Timed out" end local function activate(button) if cancelled() then return false, "Cancelled" end if type(firesignal) ~= "function" then return false, "GUI activation is unavailable" end if not button or not button:IsA("GuiButton") or not button.Parent then return false, "Quest button is unavailable" end identity() local ok, err = pcall(firesignal, button.Activated) identity() return ok, not ok and tostring(err) or nil end if cancelled() then return false, "Cancelled" end if player:GetAttribute("TutorialStep") == 100 then return true, "Tutorial already complete" end if player:GetAttribute("TutorialStep") ~= 4 then return false, "Tutorial is not at the quest step" end local reason gui, reason = waitFor(gameUI, 4) if not gui then return false, reason end local frame frame, reason = waitFor(function() return gui:FindFirstChild("QuestsFrame") end, 4) if not frame then return false, reason end local opened = false if not frame.Visible then local side = gui:FindFirstChild("SideButtons") local toggle = side and side:FindFirstChild("QuestsUIToggle") local button = toggle and toggle:FindFirstChild("Button") local ok, err = activate(button) if not ok then return false, err end opened = true local visible visible, reason = waitFor(function() return frame.Visible end, 4) if not visible then return false, "Quests did not open: " .. reason end end local content = frame:FindFirstChild("Content") local tabs = content and content:FindFirstChild("Tabs") local ok, err = activate(tabs and tabs:FindFirstChild("MilestonesTab")) if not ok then return false, err end local claim claim, reason = waitFor(function() if player:GetAttribute("TutorialStep") == 100 then return "complete" end local list = content and content:FindFirstChild("List") local row = list and list:FindFirstChild("Buy1") local button = row and row:FindFirstChild("ClaimButton") if frame.Visible and row and row.Visible and button and button.Visible and (button.Text == "CLAIM" or button.Text == "CLAIMED") then return button end end, 4) if not claim then return false, "First quest is not ready: " .. reason end if claim ~= "complete" and claim.Text == "CLAIM" then ok, err = activate(claim) if not ok then return false, err end end local completed completed, reason = waitFor(function() return player:GetAttribute("TutorialStep") == 100 end, 4) if not completed then return false, "Tutorial completion not confirmed: " .. reason end if opened and frame.Visible and gameUI() == gui and not cancelled() then activate(frame:FindFirstChild("ExitButton")) end return true, "Tutorial completed" end end)() local createQuestClaimer = (function() return function(player, options) local Claimer, busy = {}, false local function canCleanup() if type(options) ~= "table" or type(options.CanCleanup) ~= "function" then return false end local ok, value = pcall(options.CanCleanup) return ok and value == true end local groups = { "Daily", "Weekly", "Milestones" } local otherPanels = { "ExploitIndexFrame", "RebirthFrame", "LicenceFrame", "SettingsFrame", "ShopFrame", "TradeFrame", "VaultFrame", } local function identity() if type(setthreadidentity) == "function" then pcall(setthreadidentity, 8) end end local function gameUI() identity() local pg = player:FindFirstChild("PlayerGui") return pg and pg:FindFirstChild("GameUI") end local function anotherPanel(gui) for _, name in ipairs(otherPanels) do local panel = gui:FindFirstChild(name) if panel and panel:IsA("GuiObject") and panel.Visible then return true end end return false end local function activate(button) if type(firesignal) ~= "function" then return false, "GUI activation is unavailable" end if not button or not button.Parent or not button:IsA("GuiButton") then return false, "Quest button is unavailable" end identity() local ok, err = pcall(firesignal, button.Activated) identity() return ok, not ok and tostring(err) or nil end function Claimer:HasReadyRewards() local gui = gameUI() local side = gui and gui:FindFirstChild("SideButtons") local toggle = side and side:FindFirstChild("QuestsUIToggle") local badge = toggle and toggle:FindFirstChild("ReadyBadge") local count = badge and tonumber(badge.Text) return badge ~= nil and badge.Visible == true and count ~= nil and count == count and count > 0 and count < math.huge end function Claimer:Scan(shouldAbort) local report = { claimed = 0, byGroup = { Daily = 0, Weekly = 0, Milestones = 0 }, failed = 0, status = "No ready rewards", claimedIds = {}, } if busy then report.status = "A quest claim pass is already running" return report end if not self:HasReadyRewards() then return report end busy = true local gui, frame, list, tabs, originalTab, originalCanvas, expectedTab, visibleConnection local opened, changedByUser, closing = false, false, false local started, lastAttempt, attempts = os.clock(), -math.huge, 0 local attempted = {} local function cancelled() return shouldAbort and shouldAbort() == true end local function selectedTab() if not tabs then return nil end for _, group in ipairs(groups) do local tab = tabs:FindFirstChild(group .. "Tab") if tab and tab.BackgroundColor3 == Color3.fromRGB(46, 160, 67) then return group end end end local function context() if cancelled() then return false, "Cancelled" end if os.clock() - started >= 20 then return false, "Quest pass time limit reached" end if gameUI() ~= gui then changedByUser = true return false, "Game UI changed" end if changedByUser or not frame.Visible or anotherPanel(gui) then changedByUser = true return false, "Quest panel was closed or another panel opened" end if expectedTab and selectedTab() ~= expectedTab then changedByUser = true return false, "Quest tab changed during claim pass" end return true end local function waitUntil(predicate, seconds) local deadline = math.min(started + 20, os.clock() + seconds) repeat local valid, reason = context() if not valid then return nil, reason end local value = predicate() if value then return value end task.wait(0.05) until os.clock() >= deadline return nil, "Timed out waiting for quest update" end local function pauseFor(seconds) local untilTime = os.clock() + seconds return waitUntil(function() return os.clock() >= untilTime end, seconds + 0.1) end local function claimButton(id) local row = list and list:FindFirstChild(id) return row and row:FindFirstChild("ClaimButton"), row end local function findReady(group) local rows = list:GetChildren() table.sort(rows, function(a, b) local aa, bb = a:IsA("GuiObject") and a.LayoutOrder or 0, b:IsA("GuiObject") and b.LayoutOrder or 0 return aa < bb or (aa == bb and a.Name < b.Name) end) for _, row in ipairs(rows) do local button = row:FindFirstChild("ClaimButton") if row:IsA("GuiObject") and row.Visible and button and button:IsA("GuiButton") and button.Visible and button.Text == "CLAIM" and not attempted[group .. ":" .. row.Name] then return { id = row.Name, button = button } end end end local ok, err = xpcall(function() if cancelled() then report.status = "Cancelled" return end gui = gameUI() frame = gui and gui:FindFirstChild("QuestsFrame") local content = frame and frame:FindFirstChild("Content") list = content and content:FindFirstChild("List") tabs = content and content:FindFirstChild("Tabs") if not frame or not list or not tabs then report.status = "Quest UI is not ready" return end if anotherPanel(gui) then report.status = "Another game panel is open" return end originalTab, originalCanvas = selectedTab(), list.CanvasPosition if frame.Visible and not originalTab then report.status = "Current quest tab could not be identified" return end if not frame.Visible then local side = gui:FindFirstChild("SideButtons") local toggle = side and side:FindFirstChild("QuestsUIToggle") local activated, problem = activate(toggle and toggle:FindFirstChild("Button")) if not activated then report.status = problem return end opened = true local deadline = math.min(started + 20, os.clock() + 3) while not frame.Visible and os.clock() < deadline do if cancelled() then report.status = "Cancelled" return end if gameUI() ~= gui or anotherPanel(gui) then changedByUser = true report.status = "Game panel changed" return end task.wait(0.05) end if not frame.Visible then report.status = "Quests did not open" return end end visibleConnection = frame:GetPropertyChangedSignal("Visible"):Connect(function() if not closing and not frame.Visible then changedByUser = true end end) for _, group in ipairs(groups) do local valid, reason = context() if not valid then report.status = reason return end local activated, problem = activate(tabs:FindFirstChild(group .. "Tab")) if not activated then report.status = problem return end expectedTab = group local settled, settleReason = pauseFor(0.15) if not settled then report.status = settleReason return end local candidate, waitReason = waitUntil(function() return findReady(group) end, 0.75) if not candidate and waitReason ~= "Timed out waiting for quest update" then report.status = waitReason return end while candidate do if attempts >= 20 then report.status = "Quest claim limit reached" return end local spaced, spacingReason = pauseFor(math.max(0, lastAttempt + 0.6 - os.clock())) if not spaced then report.status = spacingReason return end local validNow, currentReason = context() if not validNow then report.status = currentReason return end local button, row = claimButton(candidate.id) if button and row.Visible and button.Visible and button.Text == "CLAIM" then attempted[group .. ":" .. candidate.id] = true attempts += 1 lastAttempt = os.clock() local fired, fireError = activate(button) if not fired then report.failed += 1 report.status = fireError return end local received, receiptReason = waitUntil(function() local updated = claimButton(candidate.id) return updated and updated.Text == "CLAIMED" end, 3) if received then report.claimed += 1 report.byGroup[group] += 1 table.insert(report.claimedIds, candidate.id) else report.failed += 1 if receiptReason ~= "Timed out waiting for quest update" then report.status = receiptReason return end end else attempted[group .. ":" .. candidate.id] = true end candidate = findReady(group) end end report.status = report.failed > 0 and "Some quest claims were not confirmed" or (report.claimed > 0 and "Completed quest rewards claimed" or "No completed rewards available") end, debug.traceback) if visibleConnection then visibleConnection:Disconnect() end local cleanupOK, cleanupError = pcall(function() local aborted = cancelled() local softCleanup = aborted and opened and canCleanup() if gui and frame and frame.Visible and gameUI() == gui and gui:FindFirstChild("QuestsFrame") == frame and not changedByUser and not anotherPanel(gui) and (not aborted or softCleanup) and (not softCleanup or not expectedTab or selectedTab() == expectedTab) then closing = true if opened then activate(frame:FindFirstChild("ExitButton")) elseif not aborted and originalTab then activate(tabs:FindFirstChild(originalTab .. "Tab")) list.CanvasPosition = originalCanvas end end end) busy = false if not ok then report.status = "Quest UI error: " .. tostring(err) end if not cleanupOK then report.status = "Quest UI cleanup error: " .. tostring(cleanupError) end return report end return Claimer end end)() local createProgression = (function() return function(player, Display, options) local self = {} local function canCleanup() if type(options) ~= "table" or type(options.CanCleanup) ~= "function" then return false end local ok, value = pcall(options.CanCleanup) return ok and value == true end local gearNames = { ["Gravity Hack"] = { id = "GRAVITY_COIL", tool = "GravityCoil", tip = "Gravity Hack" }, ["Speed Hack"] = { id = "SPEED_COIL", tool = "SpeedCoil", tip = "Speed Hack" }, ["Ban Bat"] = { id = "BAN_BAT", tool = "BanBat", tip = "Ban Bat" }, ["Ban Hammer"] = { id = "BAN_HAMMER", tool = "BanHammer", tip = "Ban Hammer" }, } local confirmedGear, attemptedGear, pendingGear = {}, {}, nil local function inventory() local backpack = player:FindFirstChild("Backpack") local character = player.Character if not backpack or not character then return nil end local result = { objects = {} } for _, holder in ipairs({ backpack, character }) do local children = holder:GetChildren() if #children > 128 then return nil end for _, tool in ipairs(children) do if tool:IsA("Tool") then result.objects[tool] = true for _, spec in pairs(gearNames) do if tool.Name == spec.tool and tool.ToolTip == spec.tip then result[spec.id] = result[spec.id] or {} result[spec.id][tool] = true end end end end end return result end local panelNames = { "ExploitIndexFrame", "RebirthFrame", "LicenceFrame", "SettingsFrame", "ShopFrame", "QuestsFrame", "RebirthVaultWarning", } local function identity() if type(setthreadidentity) == "function" then pcall(setthreadidentity, 8) end end local function gameUI() identity() local pg = player:FindFirstChild("PlayerGui") return pg and pg:FindFirstChild("GameUI") end local function cancelled(abort) return abort and abort() == true end local function otherPanel(gui, permitted) for _, name in ipairs(panelNames) do local panel = gui:FindFirstChild(name) if panel and panel.Visible and not permitted[name] then return true end end return false end local function activate(button, signal, abort) if cancelled(abort) then return false, "Cancelled", false end if type(firesignal) ~= "function" then return false, "Native UI activation unavailable", false end if not button or not button.Parent or not button:IsA("GuiButton") then return false, "Native button unavailable", false end identity() local ok, err = pcall(firesignal, button[signal or "Activated"]) identity() return ok, not ok and tostring(err) or nil, true end local function waitFor(test, abort, seconds, context) local deadline = os.clock() + (seconds or 4) repeat if cancelled(abort) then return nil, "Cancelled" end if context and gameUI() ~= context then return nil, "Game UI changed" end local value = test() if value then return value end task.wait(0.05) until os.clock() >= deadline return nil, "Timed out" end local function selectedTab(tabs) if not tabs then return nil end for _, tab in ipairs(tabs:GetChildren()) do if tab:IsA("GuiButton") then local color = tab.BackgroundColor3 if color and math.abs(color.R - 46 / 255) < 0.01 and math.abs(color.G - 160 / 255) < 0.01 and math.abs(color.B - 67 / 255) < 0.01 then return tab end end end end local function panelSession(name, toggleName, signal, abort) if cancelled(abort) then return nil, "Cancelled" end local gui = gameUI() if not gui then return nil, "Waiting for game UI" end local frame = gui:FindFirstChild(name) if not frame then return nil, "Waiting for " .. name end local permitted = { [name] = true } if name == "RebirthFrame" then permitted.RebirthVaultWarning = true end if otherPanel(gui, permitted) then return nil, "Waiting while another game panel is open" end local opened = not frame.Visible local content = frame:FindFirstChild("Content") local tabs = content and content:FindFirstChild("Tabs") local list = content and content:FindFirstChild("List") local previousTab, previousScroll = selectedTab(tabs), list and list.CanvasPosition local changedByUser, visibleConnection, finished = false, nil, false local function unchanged() if gameUI() ~= gui or gui:FindFirstChild(name) ~= frame or not frame.Visible or otherPanel(gui, permitted) then changedByUser = true end return not changedByUser end local function interrupted() return not unchanged() or cancelled(abort) end if type(frame.GetPropertyChangedSignal) == "function" then pcall(function() visibleConnection = frame:GetPropertyChangedSignal("Visible"):Connect(function() if not frame.Visible then changedByUser = true end end) end) end local session = { gui = gui, frame = frame, tabs = tabs, list = list, opened = opened, interrupted = interrupted } function session:Finish() if finished then return end finished = true local aborted, same = cancelled(abort), unchanged() if visibleConnection then visibleConnection:Disconnect() visibleConnection = nil end if not same or (aborted and (not opened or not canCleanup())) then return end if opened then local closeAbort = abort if aborted then closeAbort = nil end activate(frame:FindFirstChild("ExitButton"), signal, closeAbort) elseif not aborted and previousTab and previousTab.Parent == tabs then activate(previousTab, "Activated", abort) if list and list.Parent and previousScroll then list.CanvasPosition = previousScroll end end end if opened then local side = gui:FindFirstChild("SideButtons") local toggle = side and side:FindFirstChild(toggleName) local ok, err = activate(toggle and toggle:FindFirstChild("Button"), signal, abort) if not ok then session:Finish() return nil, err end local visible, reason = waitFor(function() return frame.Visible end, abort, 4, gui) if not visible then session:Finish() return nil, reason end end return session end local function money() local value = player:GetAttribute("Money") return type(value) == "number" and value == value and value >= 0 and value < math.huge and value or 0 end function self:RebirthReady() if not player:GetAttribute("DataLoaded") then return false, "Waiting for player data" end local needed = player:GetAttribute("RebirthMoneyNeeded") if type(needed) ~= "number" or needed <= 0 or needed ~= needed or needed == math.huge then return false, "Waiting for rebirth requirements" end if player:GetAttribute("RebirthUnitsReady") ~= true then return false, "Waiting for required exploits" end if money() < needed then return false, "Waiting for rebirth cash" end return true, "Ready" end function self:TryRebirth(abort) local ready, reason = self:RebirthReady() local report = { success = false, status = reason, before = player:GetAttribute("Rebirths") or 0 } if not ready or cancelled(abort) then if cancelled(abort) then report.status = "Cancelled" end return report end local session, err = panelSession("RebirthFrame", "RebirthUIEnabled", "MouseButton1Click", abort) if not session then report.status = err return report end local function stop() return session.interrupted() end local ok, failure = xpcall(function() local button, why = waitFor(function() for _, name in ipairs({ "RebirthEnabled", "LargeRebirthEnabled" }) do local candidate = session.frame:FindFirstChild(name) if candidate and candidate.Visible then return candidate end end end, stop, 4, session.gui) if not button then report.status = why return end if not self:RebirthReady() then report.status = "Rebirth requirements changed" return end local pressed, detail = activate(button, "MouseButton1Click", stop) if not pressed then report.status = detail return end local warning = session.gui:FindFirstChild("RebirthVaultWarning") local response, waitReason = waitFor(function() if (player:GetAttribute("Rebirths") or 0) > report.before then return "complete" end if warning and warning.Visible then return "warning" end end, stop, 5, session.gui) if response == "warning" then if not self:RebirthReady() then report.status = "Rebirth requirements changed" return end pressed, detail = activate(warning:FindFirstChild("AcceptButton"), "Activated", stop) if not pressed then report.status = detail return end report.warningAccepted = true response, waitReason = waitFor(function() return (player:GetAttribute("Rebirths") or 0) > report.before end, stop, 6, session.gui) end report.after = player:GetAttribute("Rebirths") or report.before report.success = report.after > report.before report.status = report.success and "Rebirth confirmed" or (waitReason or "Rebirth not confirmed") end, debug.traceback) session:Finish() if not ok then report.status = "Rebirth UI error" report.error = tostring(failure) end return report end function self:ReadRebirthNeeds(abort) local ready, reason = self:RebirthReady() if ready then return { success = true, status = "Ready", needs = {} } end local level = player:GetAttribute("Rebirths") local function stableAbort() return cancelled(abort) or player:GetAttribute("Rebirths") ~= level end local sideName = player:GetAttribute("RebirthUnitsReady") == true and "RebirthUIEnabled" or "RebirthUIDisabled" local needed = player:GetAttribute("RebirthMoneyNeeded") if type(needed) == "number" and money() < needed then sideName = "RebirthUIDisabled" end local session, err = panelSession("RebirthFrame", sideName, "MouseButton1Click", stableAbort) if not session then return { success = false, status = err, needs = {} } end local perks = session.frame:FindFirstChild("Perks") local holder = perks and perks:FindFirstChild("NeedsHolder") local report = { success = false, status = reason, needs = {}, rebirths = level } local refreshedAt = os.clock() + 4.1 local cards, waitReason = waitFor(function() if os.clock() < refreshedAt then return nil end if not holder then return nil end local result = {} for _, card in ipairs(holder:GetChildren()) do local name, state = card:FindFirstChild("UnitName"), card:FindFirstChild("State") if name and state then local info = card:FindFirstChild("Info") local nameText = Display and Display.VisibleText(name.Text) or name.Text local stateText = Display and Display.VisibleText(state.Text) or state.Text local infoText = info and (Display and Display.VisibleText(info.Text) or info.Text) local rarity = nameText and nameText:match("^Any%s+(.+)$") local tier = card:FindFirstChild("Icon") tier = tier and tier:FindFirstChild("TierText") local have, count if stateText then have, count = stateText:match("^(%d+)%s*/%s*(%d+)%s+IN BASE$") end count = tonumber(count) or (tier and tonumber(tier.Text:match("^x(%d+)$"))) or 1 local missing = stateText ~= "IN YOUR BASE" have = tonumber(have) or (missing and 0 or count) missing = have < count if not rarity and infoText then rarity = infoText:match("^%s*(.-)%s+%$") end local price = infoText and Display and Display.Quote(infoText) local id = type(card.GetAttribute) == "function" and card:GetAttribute("ExploitId") or nil result[#result + 1] = { id = type(id) == "string" and id ~= "" and id or nil, rowName = card.Name, name = nameText, state = stateText, missing = missing, info = infoText, rarity = rarity, count = count, current = have, price = price and price.amount, } end end if #result > 0 then return result end end, session.interrupted, 6, session.gui) if cards then local missing = false for _, need in ipairs(cards) do if need.missing then missing = true break end end if player:GetAttribute("RebirthUnitsReady") == false and not missing then report.status = "Waiting for fresh rebirth requirements" else report.success = true report.needs = cards end else report.status = waitReason or "Waiting for fresh rebirth requirements" end session:Finish() if player:GetAttribute("Rebirths") ~= level then report.success = false report.needs = {} report.status = "Rebirth level changed - retry requirements" elseif cancelled(abort) then report.success = false report.needs = {} report.status = "Cancelled" end return report end function self:BuyUpgrade(abort, budgetOptions) budgetOptions = budgetOptions or {} local function option(value, fallback) if value == nil then return fallback end if type(value) ~= "number" and type(value) ~= "string" then return nil end return tonumber(value) end local reserve = option(budgetOptions.CashReserve, 0) local cap = option(budgetOptions.MaxPrice, math.huge) if not reserve or not cap or reserve ~= reserve or reserve < 0 or reserve == math.huge or cap ~= cap or cap < 0 then return { success = false, status = "Invalid shop budget" } end if not player:GetAttribute("DataLoaded") then return { success = false, status = "Waiting for player data" } end if not inventory() then return { success = false, status = "Waiting for owned-tool inventory" } end local function receipt(record, list) if money() < record.beforeMoney then record.debitSeen = true end if record.button.Parent and record.button.Text == "OWNED" then return true end local tools = inventory() if record.debitSeen and tools and tools[record.id] then for tool in pairs(tools[record.id]) do local id = tool:GetAttribute("HotbarId") if not record.beforeTools.objects[tool] and type(id) == "number" and id == id and id > 0 and id % 1 == 0 then return true end end end if not list then local gui = gameUI() local frame = gui and gui:FindFirstChild("ShopFrame") local content = frame and frame:FindFirstChild("Content") list = content and content:FindFirstChild("List") end for _, row in ipairs(list and list:GetChildren() or {}) do local info, button = row:FindFirstChild("Info"), row:FindFirstChild("BuyButton") local name = info and info:FindFirstChild("ItemName") if name and name.Text == record.name and button and button.Text == "OWNED" then return true end end return false end if pendingGear then local pending = pendingGear if receipt(pending) then confirmedGear[pending.id] = true pendingGear = nil return { success = true, item = pending.name, itemId = pending.id, price = pending.nominal, deferred = true, status = "Confirmed earlier purchase of " .. pending.name, } end return { success = false, pending = true, item = pending.name, itemId = pending.id, status = "Waiting for earlier cash-gear receipt; no repeat purchase", } end local session, err = panelSession("ShopFrame", "ShopUIToggle", "Activated", abort) if not session then return { success = false, status = err } end local report = { success = false, status = "No affordable unowned cash gear" } local ok, failure = xpcall(function() local gear = session.tabs and session.tabs:FindFirstChild("GearTab") local pressed, why = activate(gear, "Activated", session.interrupted) if not pressed then report.status = why return end local function candidate() local best, loaded = false, false if not session.list then return nil end local tools = inventory() if not tools then return nil end for _, row in ipairs(session.list:GetChildren()) do local info, button = row:FindFirstChild("Info"), row:FindFirstChild("BuyButton") local name = info and info:FindFirstChild("ItemName") if name and button and gearNames[name.Text] then loaded = true local spec = gearNames[name.Text] if button.Text == "OWNED" or tools[spec.id] then confirmedGear[spec.id] = true end if row.Visible and button.Visible and not confirmedGear[spec.id] and not attemptedGear[spec.id] then local cashText = Display and Display.VisibleText(button.Text) local quote = cashText and cashText:match("^%s*%$") and Display.Quote(button.Text) if quote and quote.upper <= cap and quote.upper + reserve <= money() and (not best or quote.upper < best.price) then best = { name = name.Text, id = spec.id, button = button, price = quote.upper, nominal = quote.amount, } end end end end if loaded then return { best = best } end end local answer, detail = waitFor(candidate, session.interrupted, 4, session.gui) if not answer then report.status = detail return end local target = answer.best if not target then return end if target.price + reserve > money() then report.status = "Shop budget changed" return end local beforeTools = inventory() if not beforeTools then report.status = "Owned-tool inventory changed" return end if beforeTools[target.id] or confirmedGear[target.id] or attemptedGear[target.id] then report.status = "Cash gear is already owned or awaiting verification" return end if session.interrupted() then report.status = "Cancelled" return end local beforeMoney = money() report.item = target.name report.itemId = target.id report.price = target.nominal attemptedGear[target.id] = true pendingGear = { id = target.id, name = target.name, nominal = target.nominal, button = target.button, beforeTools = beforeTools, beforeMoney = beforeMoney, debitSeen = false, } local fired pressed, detail, fired = activate(target.button, "Activated", session.interrupted) if not pressed then if fired == false then pendingGear = nil attemptedGear[target.id] = nil end report.status = detail return end if money() < beforeMoney then pendingGear.debitSeen = true end local owned, receiptReason = waitFor(function() return receipt(pendingGear, session.list) end, session.interrupted, 5, session.gui) report.success = owned == true if report.success then confirmedGear[target.id] = true pendingGear = nil else report.pending = true end report.status = report.success and ("Bought " .. target.name) or (receiptReason or "Ownership not confirmed") end, debug.traceback) session:Finish() if not ok then report.status = "Shop UI error" report.error = tostring(failure) end return report end return self end end)() local createBitsFarmer = (function() local function createBitsFarmer(player, navigator, options) local retryAt = setmetatable({}, { __mode = "k" }) local saleInFlight = false local module = {} local function canCleanup() if type(options) ~= "table" or type(options.CanCleanup) ~= "function" then return false end local ok, value = pcall(options.CanCleanup) return ok and value == true end local function numberAttribute(name) local n = player:GetAttribute(name) return type(n) == "number" and n == n and n >= 0 and n < math.huge and n or 0 end local function cancelled(abort) if not abort then return false end local ok, value = pcall(abort) return not ok or value == true end local function root() local character = player.Character local humanoid = character and character:FindFirstChildOfClass("Humanoid") local part = character and character:FindFirstChild("HumanoidRootPart") return humanoid and humanoid.Health > 0 and part and part:IsA("BasePart") and part or nil end local function modelPosition(model) local ok, position = pcall(function() return model:GetPivot().Position end) local v = ok and position or nil if typeof(v) ~= "Vector3" or v.X ~= v.X or v.Y ~= v.Y or v.Z ~= v.Z or math.abs(v.X) == math.huge or math.abs(v.Y) == math.huge or math.abs(v.Z) == math.huge then return nil end return v end local function promptPosition(prompt) local parent = prompt and prompt.Parent if parent and parent:IsA("Attachment") then return parent.WorldPosition end if parent and parent:IsA("BasePart") then return parent.Position end end local function result(status, collected, sold, cash) return { success = (collected or 0) > 0 or (sold or 0) > 0, collected = collected or 0, sold = sold or 0, cash = cash or 0, status = status, } end function module:Collect(abort) if cancelled(abort) then return result("Paused") end local folder, part = workspace:FindFirstChild("Bits"), root() if not folder or not part then return result("Waiting for bits and character") end local chosen, nearest = nil, math.huge for index, model in ipairs(folder:GetChildren()) do if index > 100 then break end if model:IsA("Model") and (retryAt[model] or 0) <= os.clock() then local position = modelPosition(model) if position then local distance = (position - part.Position).Magnitude if distance < nearest then chosen, nearest = model, distance end end end end if not chosen then return result("Waiting for a bit pickup") end retryAt[chosen] = os.clock() + 5 local before = numberAttribute("Bits") local function gone() return not chosen:IsDescendantOf(folder) end local reached, reason = navigator:GoTo( function() return not gone() and modelPosition(chosen) or nil end, 2, 25, function() return cancelled(abort) or gone() or not root() end ) local deadline = os.clock() + 1 repeat local gained = numberAttribute("Bits") - before if gained > 0 then return result("Bit pickup confirmed", gained) end if cancelled(abort) then return result("Paused") end if not root() then return result("Waiting for character") end if not reached and not gone() then break end task.wait(0.1) until os.clock() >= deadline retryAt[chosen] = os.clock() + 15 return result((reached or gone()) and "Bit pickup not confirmed" or ("Bit route: " .. tostring(reason))) end function module:Sell(abort, eligible) local gui, screen, popup, requestedOffer, ownedOffer, accepted, changedByUser, interacting, closing local visibleConnection, amountConnection local function observeOffer() if requestedOffer and popup and popup.Visible then ownedOffer = true end end local function perform() if cancelled(abort) then return result("Paused") end local function thresholdReached() if not eligible then return true end local ok, value = pcall(eligible) return ok and value == true end if not thresholdReached() then return result("Waiting for the bit sale threshold") end if saleInFlight then return result("Waiting for the previous bit sale") end if numberAttribute("Bits") <= 0 then return result("No bits to sell") end local dealer = workspace:FindFirstChild("Bitdancer") local prompt = dealer and dealer:IsA("Model") and dealer:FindFirstChild("SellPrompt", true) if not prompt or not prompt:IsA("ProximityPrompt") or not prompt.Enabled or prompt.HoldDuration ~= 0 then return result("Bitdancer is unavailable") end gui = player:FindFirstChild("PlayerGui") screen = gui and gui:FindFirstChild("DowngradeUI") popup = screen and screen:FindFirstChild("SellPopup") if not popup or screen.Enabled == false then return result("Waiting for the bit sale dialog") end if popup.Visible then return result("Existing bit sale offer left open") end if type(firesignal) ~= "function" then return result("Native dialog activation unavailable") end if type(popup.GetPropertyChangedSignal) == "function" then pcall(function() visibleConnection = popup:GetPropertyChangedSignal("Visible"):Connect(function() if popup.Visible then observeOffer() elseif ownedOffer and not accepted and not closing then changedByUser = true end end) end) end local initialAmountRow = popup:FindFirstChild("AmountRow") local amount = initialAmountRow and initialAmountRow:FindFirstChild("Amount") if amount and type(amount.GetPropertyChangedSignal) == "function" then pcall(function() amountConnection = amount:GetPropertyChangedSignal("Text"):Connect(function() if ownedOffer and not interacting then changedByUser = true end end) end) end local function unavailable() return cancelled(abort) or not thresholdReached() or not root() or not dealer:IsDescendantOf(workspace) or not prompt:IsDescendantOf(dealer) or not prompt.Enabled end local reached, reason = navigator:GoTo( function() return not unavailable() and promptPosition(prompt) or nil end, 5, 25, function() return unavailable() or popup.Visible end ) if unavailable() then return result("Paused or Bitdancer unavailable") end if not reached then return result("Bitdancer route: " .. tostring(reason)) end if popup.Visible then return result("Existing bit sale offer left open") end local position, part, dealerPosition = promptPosition(prompt), root(), modelPosition(dealer) if not position or not part or not dealerPosition or (part.Position - position).Magnitude > math.max(0, prompt.MaxActivationDistance - 1) or (part.Position - dealerPosition).Magnitude > 19 then return result("Bitdancer is out of reach") end local held = false local opened = pcall(function() requestedOffer = true held = true prompt:InputHoldBegin() prompt:InputHoldEnd() held = false end) if held then pcall(function() prompt:InputHoldEnd() end) end observeOffer() if not opened then return result("Could not open the bit sale offer") end local offerDeadline = os.clock() + 2 while not popup.Visible and os.clock() < offerDeadline do if unavailable() then return result("Paused or Bitdancer unavailable") end task.wait(0.1) end observeOffer() if unavailable() then return result("Paused or Bitdancer unavailable") end if not popup.Visible then return result("No new bit sale offer received") end local amountRow, accept = popup:FindFirstChild("AmountRow"), popup:FindFirstChild("AcceptButton") local all if amountRow then for index, button in ipairs(amountRow:GetChildren()) do if index > 30 then break end if button:IsA("TextButton") and button:GetAttribute("All") == true then all = button break end end end if not all or not accept or not accept:IsA("TextButton") then return result("Bit sale offer controls unavailable") end if not all.Visible or not accept.Visible then return result("Bit sale offer is unavailable") end local beforeBits, beforeCash = numberAttribute("Bits"), numberAttribute("Money") local activationError saleInFlight = true task.spawn(function() local ok, err = pcall(function() if unavailable() or not popup.Visible then return end interacting = true firesignal(all.Activated) interacting = false if unavailable() or not popup.Visible then return end accepted = true firesignal(accept.Activated) end) interacting = false if not ok then activationError = tostring(err) end saleInFlight = false end) local receiptDeadline = os.clock() + 3 repeat local sold, earned = beforeBits - numberAttribute("Bits"), numberAttribute("Money") - beforeCash if sold > 0 and earned > 0 then return result("Bit sale confirmed", nil, sold, earned) end if cancelled(abort) then return result("Paused") end if activationError then return result("Could not activate the native bit sale dialog") end task.wait(0.1) until os.clock() >= receiptDeadline return result("Bit sale not confirmed") end local ok, response = pcall(perform) pcall(function() if not ownedOffer or accepted or changedByUser or not cancelled(abort) or not canCleanup() then return end if player:FindFirstChild("PlayerGui") ~= gui or not screen or gui:FindFirstChild("DowngradeUI") ~= screen or screen:FindFirstChild("SellPopup") ~= popup or screen.Enabled == false or not popup.Visible then return end local decline = popup:FindFirstChild("DeclineButton") if not decline or not decline:IsA("TextButton") or not decline.Visible or type(firesignal) ~= "function" then return end closing = true if type(setthreadidentity) == "function" then pcall(setthreadidentity, 8) end pcall(firesignal, decline.Activated) end) if visibleConnection then visibleConnection:Disconnect() end if amountConnection then amountConnection:Disconnect() end if not ok then error(response) end return response end return module end return createBitsFarmer end)() local VaultPolicy = (function() local Policy = {} local rarityRank = { common = 1, uncommon = 2, rare = 3, epic = 4, legendary = 5, mythic = 6, secret = 7, kernel = 8 } local mutationAliases = { ["hyperion bypass"] = "hyperionbypass", ["hyperion emulator"] = "hyperionemulator", ["client modification bypass"] = "clientmodbypass", ["deleter2 bypass"] = "deleter2bypass", ["key system"] = "keysystem", ["open-source"] = "opensource", ["rust rewrite"] = "rustrewrite", ["crashes on inject"] = "crashesoninject", ["skidded & pasted"] = "skiddedpasted", ["memory leak"] = "memoryleak", } local MAX_SAFE_INTEGER = 9007199254740991 local function normalized(value) if type(value) ~= "string" then return nil end local text = value:match("^%s*(.-)%s*$"):lower() return text ~= "" and text or nil end function Policy.UpdateCatalog(catalog) for _, mutation in ipairs(type(catalog) == "table" and catalog.Mutations or {}) do local name, id = normalized(mutation.name), normalized(mutation.id) if name and id then mutationAliases[name] = id end end end local function safeInteger(value, allowZero) return type(value) == "number" and value == value and value < math.huge and value <= MAX_SAFE_INTEGER and value >= (allowZero and 0 or 1) and value % 1 == 0 end local function stringSet(values, known, aliases) if values == nil then return {}, 0 end if type(values) ~= "table" then return nil end local result, maximum, entries, unique = {}, 0, 0, 0 for index, value in pairs(values) do if not safeInteger(index, false) then return nil end local text = normalized(value) if text and aliases then text = aliases[text] or text end if not text or (known and not known[text]) then return nil end maximum = math.max(maximum, index) entries += 1 if not result[text] then result[text] = true unique += 1 end end if maximum ~= entries then return nil end return result, unique end local function compile(config) if type(config) ~= "table" then return nil, "Invalid vault configuration" end local rarities, rarityCount = stringSet(config.VaultRarities, rarityRank) local mutations, mutationCount = stringSet(config.VaultMutations, nil, mutationAliases) local names, nameCount = stringSet(config.VaultItemNames) if not rarities or not mutations or not names then return nil, "Invalid vault filter list" end local serial = config.VaultMaxSerial if serial == nil then serial = 0 end if not safeInteger(serial, true) then return nil, "Invalid maximum serial" end local matchMode = config.VaultMatchMode == nil and "all enabled filters" or normalized(config.VaultMatchMode) if matchMode ~= "all enabled filters" and matchMode ~= "any enabled filter" then return nil, "Invalid vault match mode" end local mutationMode = config.VaultMutationMode == nil and "any selected" or normalized(config.VaultMutationMode) if mutationMode ~= "any selected" and mutationMode ~= "all selected" then return nil, "Invalid mutation match mode" end return { rarities = rarities, rarityCount = rarityCount, mutations = mutations, mutationCount = mutationCount, names = names, nameCount = nameCount, serial = serial, matchMode = matchMode, mutationMode = mutationMode, count = (rarityCount > 0 and 1 or 0) + (mutationCount > 0 and 1 or 0) + (nameCount > 0 and 1 or 0) + (serial > 0 and 1 or 0), } end local function matchedMutations(item, rules) local mutations = stringSet(item.mutations, nil, mutationAliases) if not mutations then return 0, false end local count = 0 for mutation in pairs(rules.mutations) do if mutations[mutation] then count += 1 end end return count, true end local function matches(item, rules) if rules.count == 0 then return false, "No active vault filters" end if type(item) ~= "table" then return false, "Invalid item metadata" end local passed, failed, firstFailure = 0, 0, nil local function condition(enabled, value, label) if not enabled then return end if value then passed += 1 else failed += 1 firstFailure = firstFailure or label end end condition(rules.rarityCount > 0, rules.rarities[normalized(item.rarity)] == true, "rarity") local mutationMatches, validMutations = matchedMutations(item, rules) local mutationPass = validMutations and ( rules.mutationMode == "all selected" and mutationMatches == rules.mutationCount or rules.mutationMode == "any selected" and mutationMatches > 0 ) condition(rules.mutationCount > 0, mutationPass, "mutations") condition(rules.nameCount > 0, rules.names[normalized(item.name)] == true, "item name") condition(rules.serial > 0, safeInteger(item.serial, false) and item.serial <= rules.serial, "serial") if rules.matchMode == "any enabled filter" then return passed > 0, passed > 0 and "Matched an enabled vault filter" or "No enabled vault filter matched" end return failed == 0, failed == 0 and "Matched all enabled vault filters" or ("Excluded by " .. firstFailure .. " filter") end function Policy.HasRules(config) local rules, reason = compile(config) if not rules then return false, reason end return rules.count > 0, rules.count > 0 and "Vault filters are active" or "No active vault filters" end function Policy.Matches(item, config) local rules, reason = compile(config) if not rules then return false, reason end return matches(item, rules) end function Policy.RankCandidates(items, config) local rules, reason = compile(config) if not rules then return {}, reason end if type(items) ~= "table" then return {}, "Invalid candidate list" end local maximum, entries = 0, 0 for index in pairs(items) do if not safeInteger(index, false) then return {}, "Invalid candidate list" end maximum = math.max(maximum, index) entries += 1 end if maximum ~= entries then return {}, "Invalid candidate list" end local ranked = {} for index, item in ipairs(items) do if matches(item, rules) then local mutationCount = matchedMutations(item, rules) table.insert(ranked, { item = item, index = index, serial = safeInteger(item.serial, false) and item.serial or math.huge, rarity = rarityRank[normalized(item.rarity)] or 0, mutations = mutationCount, key = normalized(item.key) or "", name = normalized(item.name) or "", rawKey = type(item.key) == "string" and item.key or "", rawName = type(item.name) == "string" and item.name or "", }) end end table.sort(ranked, function(a, b) if a.serial ~= b.serial then return a.serial < b.serial end if a.rarity ~= b.rarity then return a.rarity > b.rarity end if a.mutations ~= b.mutations then return a.mutations > b.mutations end if a.key ~= b.key then return a.key < b.key end if a.name ~= b.name then return a.name < b.name end if a.rawKey ~= b.rawKey then return a.rawKey < b.rawKey end if a.rawName ~= b.rawName then return a.rawName < b.rawName end return a.index < b.index end) local output = {} for _, record in ipairs(ranked) do table.insert(output, record.item) end return output, rules.count > 0 and "Candidates ranked" or "No active vault filters" end return Policy end)() local createVaultController = (function() return function(player, Display, Policy, navigator, options) local module, busy = {}, false local function canCleanup() if type(options) ~= "table" or type(options.CanCleanup) ~= "function" then return false end local ok, value = pcall(options.CanCleanup) return ok and value == true end local rarities = { Common = true, Uncommon = true, Rare = true, Epic = true, Legendary = true, Mythic = true, Secret = true, Kernel = true, } local function identity() if type(setthreadidentity) == "function" then pcall(setthreadidentity, 8) end end local function cancel(abort) if not abort then return false end local ok, value = pcall(abort) return not ok or value == true end local function ownBase() local bases = workspace:FindFirstChild("Bases") local name = player:GetAttribute("BaseName") local base = bases and type(name) == "string" and bases:FindFirstChild(name) return base and base:GetAttribute("OwnerId") == player.UserId and base or nil end local function root() local char = player.Character local hum = char and char:FindFirstChildOfClass("Humanoid") local part = char and char:FindFirstChild("HumanoidRootPart") return hum and hum.Health > 0 and part and part:IsA("BasePart") and part or nil end local function nativeUI() identity() local pg = player:FindFirstChild("PlayerGui") local screen = pg and pg:FindFirstChild("VaultUI") return screen, screen and screen:FindFirstChild("VaultFrame"), pg end local function otherPanel(pg) local gameUI = pg and pg:FindFirstChild("GameUI") for _, name in ipairs({ "ExploitIndexFrame", "RebirthFrame", "LicenceFrame", "SettingsFrame", "ShopFrame", "QuestsFrame", "RebirthVaultWarning", }) do local panel = gameUI and gameUI:FindFirstChild(name) if panel and panel:IsA("GuiObject") and panel.Visible then return true end end return false end local function activate(button) if type(firesignal) ~= "function" or not button or not button.Parent or not button:IsA("GuiButton") then return false end identity() local ok = pcall(firesignal, button.Activated) identity() return ok end local function plain(value) return type(value) == "string" and Display.VisibleText(value) or nil end local function promptPosition(prompt) local parent = prompt and prompt.Parent if parent and parent:IsA("Attachment") then return parent.WorldPosition end if parent and parent:IsA("BasePart") then return parent.Position end end local inventoryFields = { "occupied", "stolen", "model", "modelAttribute", "mutations" } local filterFields = { "AutoVault", "VaultRarities", "VaultMutations", "VaultItemNames", "VaultMaxSerial", "VaultMatchMode", "VaultMutationMode", } local function copyFilters(config) local result = {} for _, key in ipairs(filterFields) do local value = config[key] result[key] = type(value) == "table" and table.clone(value) or value end return result end local function sameFilters(before, current) if type(current) ~= "table" then return false end for _, key in ipairs(filterFields) do local a, b = before[key], current[key] if type(a) == "table" and type(b) == "table" then for index, value in pairs(a) do if b[index] ~= value then return false end end for index, value in pairs(b) do if a[index] ~= value then return false end end elseif a ~= b then return false end end return true end local function slotInventory(base) local slots = base and base:FindFirstChild("Slots") if not slots then return nil end local result = {} for _, slot in ipairs(slots:GetChildren()) do if slot:IsA("Model") then local mutations = slot:FindFirstChild("Mutations") result[slot] = { occupied = slot:GetAttribute("Occupied"), stolen = slot:GetAttribute("Stolen"), model = slot:FindFirstChild("EXPLOIT_MODEL"), modelAttribute = slot:GetAttribute("ExploitModel"), mutations = mutations and mutations.Value, } end end return result end local function sameInventory(before, after, deposited) if not before or not after then return false end local cleared = 0 for slot, entry in pairs(before) do local current = after[slot] if not current then return false end if deposited and entry.occupied == true and current.occupied == false then cleared += 1 else for _, key in ipairs(inventoryFields) do if entry[key] ~= current[key] then return false end end end end for slot in pairs(after) do if not before[slot] then return false end end return cleared == (deposited and 1 or 0) end local function occupiedCount(base) local count = 0 local slots = base and base:FindFirstChild("Slots") if not slots then return nil end for _, slot in ipairs(slots:GetChildren()) do if slot:IsA("Model") and slot:GetAttribute("Occupied") then count += 1 end end return count end local function parseRow(row, inVault) local card = row:FindFirstChild("Card") local info = card and card:FindFirstChild("Info") local title = info and info:FindFirstChild("UnitName") local box = info and info:FindFirstChild("KeyBox") local label = box and box:FindFirstChild("Key") local details = info and info:FindFirstChild("Details") local action = card and card:FindFirstChild("ActionButton") if not title or not label or not details or not action then return nil end local key = label.Text if type(key) ~= "string" or key == "" or #key > 512 or row.Name ~= (inVault and "Vault_" or "Pad_") .. key then return nil end local rawName = title.Text:match("(.-)") local rawRarity = title.Text:match("%s*]*>(.-)") local name, rarity = plain(rawName), plain(rawRarity) local titleText, detailsText = plain(title.Text), plain(details.Text) if not name or name == "" or not rarity or not rarities[rarity] or not titleText or not detailsText then return nil end local serialText = titleText:match("#(%d+)%s*$") local serial = serialText and tonumber(serialText) if serial and (serial < 1 or serial > 9007199254740991 or serial % 1 ~= 0) then serial = nil end local mutations = {} for raw in details.Text:gmatch("]*>(.-)") do local mutation = plain(raw) if not mutation or mutation == "" then return nil end mutations[#mutations + 1] = mutation end return { key = key, name = name, rarity = rarity, serial = serial, serialText = serialText, mutations = mutations, developerGenerated = titleText:find("Developer generated", 1, true) ~= nil, firstOwner = detailsText:match("First owner:%s*(.-)%s*$"), source = inVault and "vault" or "base", inVault = inVault, rowName = row.Name, title = titleText, details = detailsText, } end local function snapshot(list, base) local state = { inventory = {}, pads = {}, vault = {}, capacity = nil, used = nil, reliable = true } local seen = {} for index, row in ipairs(list:GetChildren()) do if index > 300 then state.reliable = false break end if row.Name:sub(1, 4) == "Pad_" or row.Name:sub(1, 6) == "Vault_" then local inVault = row.Name:sub(1, 6) == "Vault_" local item = parseRow(row, inVault) if not item or seen[item.key] then state.reliable = false else seen[item.key] = true state.inventory[#state.inventory + 1] = item local bucket = inVault and state.vault or state.pads bucket[#bucket + 1] = item end elseif row:IsA("TextLabel") then local text = plain(row.Text) local used, capacity if text then used, capacity = text:lower():match("in the vault%s+(%d+)%s+of%s+(%d+)") end if used and capacity then state.used = tonumber(used) state.capacity = tonumber(capacity) end end end state.reliable = state.reliable and state.capacity ~= nil and state.used ~= nil and state.capacity >= 0 and state.capacity <= 100 and state.used == #state.vault and state.used <= state.capacity and occupiedCount(base) == #state.pads return state end function module:Scan(config, abort, dryRun) if config == nil then config = {} end local report = { success = false, stored = 0, matches = 0, remaining = 0, capacity = 0, used = 0, candidates = {}, inventory = {}, blocked = 0, status = "Waiting for vault", metadataReliable = false, blockRebirth = true, storedKeys = {}, } if busy then report.status = "Another vault scan is running" return report end local hasRules, reason = Policy.HasRules(config) if not hasRules then local invalidRules = reason ~= "No active vault filters" if invalidRules or not dryRun then report.status = reason or "Select vault filters" report.success = not invalidRules report.metadataReliable = not invalidRules report.blockRebirth = invalidRules return report end end local filters = copyFilters(config) if cancel(abort) then report.status = "Cancelled" return report end busy = true local base, screen, frame, pg, list, opened, scroll, inventoryBefore, pendingDeposit, visibleConnection local changedByUser, closing = false, false local started = os.clock() local function invalid(ignoreCancellation) if not ignoreCancellation and cancel(abort) then return true, "Cancelled" end if changedByUser then return true, "Vault panel changed by user" end if not sameFilters(filters, config) then return true, "Vault filters changed - scan again" end if os.clock() - started > 60 then return true, "Vault scan time limit reached" end if ownBase() ~= base or not root() then return true, "Owned base or character changed" end if inventoryBefore and not pendingDeposit and not sameInventory(inventoryBefore, slotInventory(base), false) then return true, "Owned pad inventory changed - scan again" end local currentScreen, currentFrame, currentPG = nativeUI() if screen and (currentScreen ~= screen or currentFrame ~= frame or currentPG ~= pg) then return true, "Vault UI changed" end if screen and screen.Enabled == false then return true, "Vault UI disabled" end if pg and otherPanel(pg) then return true, "Another game panel is open" end return false end local function waitFor(predicate, seconds, requireVisible) local deadline = math.min(started + 60, os.clock() + seconds) repeat local bad, why = invalid() if bad then return nil, why end if requireVisible and not frame.Visible then return nil, "Vault panel was closed" end local value = predicate() if value then return value end task.wait(0.05) until os.clock() >= deadline return nil, "Timed out waiting for vault update" end local function updateReport(state) report.capacity = state.capacity or 0 report.used = state.used or 0 report.metadataReliable = state.reliable report.inventory = state.inventory local ranked, rankReason = Policy.RankCandidates(state.pads, filters) if type(ranked) ~= "table" or rankReason ~= (hasRules and "Candidates ranked" or "No active vault filters") then report.metadataReliable = false report.blockRebirth = true report.status = rankReason or "Invalid vault candidate policy" return false end report.candidates = ranked report.matches = #report.candidates report.remaining = report.matches return true end local ok, err = xpcall(function() base = ownBase() if not base or not player:GetAttribute("DataLoaded") then report.status = "Waiting for owned base and data" return end screen, frame, pg = nativeUI() if not screen or not frame or screen.Enabled == false then report.status = "Vault UI is not ready" return end if otherPanel(pg) then report.status = "Another game panel is open" return end local content = frame:FindFirstChild("Content") list = content and content:FindFirstChild("List") if not list then report.status = "Vault list is not ready" return end scroll = list.CanvasPosition opened = not frame.Visible if type(frame.GetPropertyChangedSignal) == "function" then pcall(function() visibleConnection = frame:GetPropertyChangedSignal("Visible"):Connect(function() if not closing and not frame.Visible then changedByUser = true end end) end) end if opened then local vault = base:FindFirstChild("Vault") local prompt = vault and vault:FindFirstChild("OpenPrompt", true) if not vault or vault:GetAttribute("OwnerId") ~= player.UserId or not prompt or not prompt:IsA("ProximityPrompt") or not prompt.Enabled then report.status = "Owned vault prompt is unavailable" return end if navigator then local reached, why = navigator:GoTo( function() if ownBase() ~= base or not prompt:IsDescendantOf(vault) or not prompt.Enabled then return nil end return promptPosition(prompt) end, 5, 35, function() return invalid() or frame.Visible end ) if not reached and not frame.Visible then report.status = "Vault route: " .. tostring(why) return end end if frame.Visible then opened = false else local point, part = promptPosition(prompt), root() if not point or not part or (part.Position - point).Magnitude > math.max(0, prompt.MaxActivationDistance - 1) then report.status = "Owned vault prompt is out of reach" return end if invalid() then report.status = "Cancelled or vault context changed" return end local hold = prompt.HoldDuration if type(hold) ~= "number" or hold < 0 or hold > 5 then report.status = "Unsupported vault prompt hold" return end local began = false local fired = pcall(function() began = true prompt:InputHoldBegin() local untilTime = os.clock() + hold + 0.15 while os.clock() < untilTime do if invalid() then return end task.wait(0.03) end end) if began then pcall(function() prompt:InputHoldEnd() end) end if not fired then report.status = "Could not open the owned vault" return end local visible, why = waitFor(function() return frame.Visible end, 4, false) if not visible then report.status = why return end end end inventoryBefore = slotInventory(base) if not inventoryBefore then report.status = "Owned pad inventory is unavailable" return end local refreshedAt = os.clock() + 2.1 local state, why = waitFor(function() if os.clock() < refreshedAt then return nil end local value = snapshot(list, base) return value.reliable and value or nil end, 6, true) if not state then report.status = why or "Waiting for licensed inventory metadata" return end if not updateReport(state) then return end if dryRun then report.success = true report.blockRebirth = report.matches > 0 report.status = "Vault preview ready" report.blocked = math.max(0, report.matches - math.max(0, report.capacity - report.used)) return end local attempted = {} for _ = 1, 20 do local bad, stopReason = invalid() if bad or not frame.Visible then report.status = stopReason or "Vault panel was closed" return end state = snapshot(list, base) if not updateReport(state) then return end if not state.reliable then report.status = "Waiting for licensed inventory metadata" return end if report.matches == 0 then report.success = true report.blockRebirth = false report.status = report.stored > 0 and "Selected exploits protected in vault" or "No selected exploits on pads" return end if report.used >= report.capacity then report.blocked = report.matches report.status = "Vault full - selected exploits remain on pads" return end local candidate for _, item in ipairs(report.candidates) do if not attempted[item.key] then candidate = item break end end if not candidate then report.blocked = report.matches report.status = "Selected deposits were not confirmed" return end attempted[candidate.key] = true local row = list:FindFirstChild("Pad_" .. candidate.key) local checked = row and parseRow(row, false) local matches = checked and Policy.Matches(checked, filters) local card = row and row:FindFirstChild("Card") local button = card and card:FindFirstChild("ActionButton") local expected = button and button:GetAttribute("StoreText") or "STORE" if not matches or not button or not button.Visible or button.Text ~= expected then report.status = "Selected inventory changed or cannot be stored" return end if invalid() then report.status = "Cancelled or vault context changed" return end pendingDeposit = true if not activate(button) then pendingDeposit = false report.status = "Native vault STORE unavailable" return end local receipt, receiptReason = waitFor(function() local deposited = list:FindFirstChild("Vault_" .. candidate.key) return deposited and parseRow(deposited, true) and not list:FindFirstChild("Pad_" .. candidate.key) end, 5, true) if not receipt then local toolbar = content:FindFirstChild("Toolbar") local hint = toolbar and toolbar:FindFirstChild("Hint") report.status = hint and plain(hint.Text) or receiptReason or "Vault deposit not confirmed" report.blocked = report.matches return end report.stored += 1 report.storedKeys[#report.storedKeys + 1] = candidate.key local afterDeposit = slotInventory(base) if not sameInventory(inventoryBefore, afterDeposit, true) then pendingDeposit = false report.status = "Owned pad inventory changed during deposit" report.metadataReliable = false return end inventoryBefore = afterDeposit pendingDeposit = false local settled, settleReason = waitFor(function() local value = snapshot(list, base) return value.reliable and value or nil end, 3, true) if not settled then report.status = settleReason return end if not updateReport(settled) then return end task.wait(0.2) end if report.remaining == 0 then report.success = true report.blockRebirth = false report.status = "Selected exploits protected in vault" else report.status = "Vault pass limit reached - more selected exploits remain" report.blocked = report.matches end end, debug.traceback) local cleanupOK = pcall(function() local softCleanup = opened and cancel(abort) and canCleanup() local bad = invalid(softCleanup) if not bad and frame and frame.Visible then if opened then closing = true activate(frame:FindFirstChild("ExitButton")) elseif not cancel(abort) and list and scroll then list.CanvasPosition = scroll end end end) if visibleConnection then visibleConnection:Disconnect() visibleConnection = nil end busy = false local changed, changeReason = invalid() if changed then report.success = false report.metadataReliable = false report.blockRebirth = true report.status = changeReason end if not ok then report.status = "Vault UI error" report.error = tostring(err) end if not cleanupOK then report.status = "Vault cleanup did not complete" end return report end return module end end)() local createGameGate = (function() return function(player, expectedUniverse, expectedPlace) local function validId(value) return type(value) == "number" and value == value and value > 0 and value <= 9007199254740991 and value % 1 == 0 end assert(validId(expectedUniverse) and validId(expectedPlace), "Invalid supported game IDs") local env = type(getgenv) == "function" and getgenv() or _G local previous = env.StealExploitFarmNotice if type(previous) == "table" and previous.Kind == "StealExploitFarmNotice" and type(previous.Destroy) == "function" then pcall(previous.Destroy, previous) end local notice = { Kind = "StealExploitFarmNotice", Supported = game.GameId == expectedUniverse and game.PlaceId == expectedPlace, GameName = "Steal an Exploit", GameUrl = "https://www.roblox.com/games/" .. string.format("%.0f", expectedPlace), Controls = {}, Destroyed = false, ClipboardCopied = false, } local library, originalUnload, destroyed, unloaded local function unloadLibrary() if unloaded or not library or not originalUnload then return end unloaded = true if type(setthreadidentity) == "function" then pcall(setthreadidentity, 8) end pcall(originalUnload, library) end function notice:Destroy() if destroyed then return end destroyed = true self.Destroyed = true if env.StealExploitFarmNotice == self then env.StealExploitFarmNotice = nil end unloadLibrary() end if notice.Supported then return notice end env.StealExploitFarmNotice = notice local function active() return not destroyed and env.StealExploitFarmNotice == notice end local function copyLink() if not active() then return end local ok = type(setclipboard) == "function" and pcall(setclipboard, notice.GameUrl) notice.ClipboardCopied = ok == true notice.Status = ok and "Game link copied to clipboard." or "Clipboard unavailable. Copy the URL above manually." if notice.StatusLabel then notice.StatusLabel:SetText(notice.Status) end end copyLink() local ok, err = xpcall(function() local url = "https://sirmemegithub.com/RealSlimShady2000/VibeUI/raw/branch/main/VibeUI.luau" local source = game:HttpGet(url) if not active() then return end local chunk, compileError = loadstring(source, "SAEFarm.WrongGame.VibeUI") assert(chunk, compileError or "VibeUI did not compile") assert(type(setfenv) == "function" and type(getfenv) == "function", "VibeUI notice isolation unavailable") local function isolated(original) return setmetatable({}, { __index = function(_, key) if key ~= "VibeUI" then return original[key] end end, }) end local privateEnv = isolated(env) local privateShared = isolated(type(shared) == "table" and shared or {}) setfenv( chunk, setmetatable({ shared = privateShared, getgenv = function() return privateEnv end, }, { __index = getfenv(chunk) }) ) library = chunk() assert(type(library) == "table" and type(library.Unload) == "function", "Invalid VibeUI library") originalUnload = library.Unload notice.Library = library if not active() then unloadLibrary() return end function library:Unload() notice:Destroy() end library:SetTheme({ Background = Color3.fromRGB(18, 22, 30), Inline = Color3.fromRGB(24, 30, 40), Element = Color3.fromRGB(33, 42, 56), ["Hovered Element"] = Color3.fromRGB(43, 55, 72), ["Page Background"] = Color3.fromRGB(18, 22, 30), Border = Color3.fromRGB(9, 12, 18), Outline = Color3.fromRGB(47, 61, 80), Text = Color3.fromRGB(235, 241, 250), Accent = Color3.fromRGB(92, 208, 235), }) library:SetTransparency(0.22) library:SetGlassBlur(0) library:SetGlass(true) local window = library:Window({ Title = "WRONG GAME", Size = UDim2.fromOffset(560, 340), Keybind = Enum.KeyCode.RightControl, FeatureSearch = false, Resizable = false, }) notice.Window = window local section = window:Tab({ Name = "Wrong game", Columns = 1 }):Section({ Name = "Supported game", Side = 1 }) section:Label("This farm does not support the game currently open.") section:Label("Supported game: " .. notice.GameName) section:Label(notice.GameUrl) notice.StatusLabel = section:Label(notice.Status) local buttons = section:Button() notice.Controls.Copy = buttons:Add("Copy game link", copyLink) notice.Controls.Close = buttons:Add("Close", function() if active() then notice:Destroy() end end) library:SetGlassBlur(0) end, debug.traceback) if not ok then notice.Error = tostring(err) if active() then unloadLibrary() notice.Status = "Wrong game. Open " .. notice.GameUrl warn("[SAEFarm] " .. notice.Status .. " (notice UI unavailable)") end end return notice end end)() local createAutoSteal = (function() return function(player, Display, navigator, state, Catalog, TargetPolicy, dependencies) state = state or {} local Players = game:GetService("Players") local HttpService = game:GetService("HttpService") local module, busy, epoch, held, active = {}, false, 0, nil, false local retryAt = setmetatable({}, { __mode = "k" }) local function integer(n) return type(n) == "number" and n == n and n > 0 and n <= 9007199254740991 and n % 1 == 0 end local function normalized(s) return type(s) == "string" and s:match("^%s*(.-)%s*$"):lower() or nil end local function cancelled(abort) if not abort then return false end local ok, value = pcall(abort) return not ok or value == true end local function carrying() local char = player.Character local model = char and char:FindFirstChild("HOLDING_EXPLOIT_MODEL") return player:GetAttribute("HoldingExploit") == true or model ~= nil, model end local function root() local char = player.Character local hum = char and char:FindFirstChildOfClass("Humanoid") local part = char and char:FindFirstChild("HumanoidRootPart") return hum and hum.Health > 0 and part and part:IsA("BasePart") and part or nil end local function ownBase() local bases = workspace:FindFirstChild("Bases") local name = player:GetAttribute("BaseName") local base = bases and type(name) == "string" and bases:FindFirstChild(name) return base and base:GetAttribute("OwnerId") == player.UserId and base or nil end local function protections(config) if config.StealWhitelistInvalid then return nil, "Invalid steal whitelist" end local list = config.StealWhitelist if list == nil then return { names = {}, ids = {} } end if type(list) ~= "table" then return nil, "Invalid steal whitelist" end local result, maxIndex, count = { names = {}, ids = {} }, 0, 0 for index, value in pairs(list) do if not integer(index) or index > 512 then return nil, "Invalid steal whitelist" end maxIndex = math.max(maxIndex, index) count += 1 if type(value) == "number" then if not integer(value) then return nil, "Invalid protected user ID" end result.ids[value] = true else local name = normalized(value) if not name or name == "" then return nil, "Invalid protected username" end local id = name:match("^%d+$") and tonumber(name) if id then if not integer(id) then return nil, "Invalid protected user ID" end result.ids[id] = true result.names[name] = true else name = name:gsub("^@", "") if not name:match("^[%w_]+$") then return nil, "Use usernames or user IDs, not display names" end result.names[name] = true end end end if maxIndex ~= count then return nil, "Invalid steal whitelist" end return result end local function protected(config, id, name) local list, reason = protections(config) if not list then return true, reason end return list.ids[id] == true or list.names[normalized(name)] == true, "Source owner is protected by the whitelist" end local function slots(base) local folder = base and base:FindFirstChild("Slots") if not folder then return nil end local children = folder:GetChildren() if #children > 200 then return nil end local result, occupied, total = {}, 0, 0 for _, slot in ipairs(children) do if slot:IsA("Model") then local value = slot:GetAttribute("Occupied") if type(value) ~= "boolean" then return nil end result[slot] = value total += 1 if value then occupied += 1 end end end return result, occupied, total end local function room(base, config, reserved, delivery) local snapshot, occupied, total = slots(base) if not snapshot then return false, "Waiting for streamed own-pad capacity" end local maximum = config.MaxOwnedUnits if config.ProgressionFarm then maximum = total end if maximum == nil then maximum = 10 end if not integer(maximum) then return false, "Invalid maximum owned-unit count" end if delivery then return total > occupied, "No native free pad for the tracked carry", snapshot end if reserved == math.huge then return false, "Waiting for rebirth pad requirements" end if type(reserved) ~= "number" or reserved ~= reserved or reserved < 0 or reserved % 1 ~= 0 then return false, "Invalid reserved-pad count" end return math.min(total, maximum) - occupied - reserved >= 1, "Own free pads are full or reserved", snapshot end local function metadata(slot) local model = slot and slot:GetAttribute("ExploitModel") local mutations = slot and slot:FindFirstChild("Mutations") local raw = mutations and mutations.Value if model == nil or type(raw) ~= "string" or #raw > 8192 or not raw:match("^%s*%[.*%]%s*$") then return nil end return { model = model, mutations = raw, visual = slot:FindFirstChild("EXPLOIT_MODEL") } end local function sameContent(slot, content) local current = metadata(slot) return current and current.model == content.model and current.mutations == content.mutations end local function targetConfigValid(config) if TargetPolicy and type(TargetPolicy.Validate) == "function" then local ok, valid, reason = pcall(TargetPolicy.Validate, config, "Steal") return ok and valid == true, ok and reason or "Target filter validation failed" end if config.StealFiltersInvalid then return false, "Correct invalid steal target filters" end for _, suffix in ipairs({ "ItemNames", "Types", "Rarities", "Mutations" }) do local value = config["Steal" .. suffix] if value ~= nil and (type(value) ~= "table" or next(value) ~= nil) then return false, "Shared target filter policy is unavailable" end end local mode = config.StealMutationMode if mode ~= nil and normalized(mode) ~= "any selected" and normalized(mode) ~= "all selected" then return false, "Invalid steal mutation matching mode" end return true end local function targetMetadata(slot, prompt) local name = prompt and type(prompt.ObjectText) == "string" and Display.VisibleText(prompt.ObjectText) name = name and name:match("^%s*(.-)%s*$") if name == "" then name = nil end local item = { name = name } local resolve = TargetPolicy and TargetPolicy.Resolve or Catalog and Catalog.Resolve local record if name and type(resolve) == "function" then local ok, value = pcall(resolve, name) if ok and type(value) == "table" and normalized(value.name) == normalized(name) then record = value end elseif name and Catalog and type(Catalog.ByName) == "table" then record = Catalog.ByName[normalized(name)] end if type(record) == "table" and normalized(record.name) == normalized(name) then item.type = record.type item.rarity = record.rarity end local mutations = slot:FindFirstChild("Mutations") if mutations and type(mutations.Value) == "string" then local ok, values = pcall(HttpService.JSONDecode, HttpService, mutations.Value) if ok and type(values) == "table" then local maximum, count, valid = 0, 0, true for index, value in pairs(values) do if not integer(index) or index > 32 or type(value) ~= "string" or normalized(value) == "" then valid = false break end maximum = math.max(maximum, index) count += 1 end if valid and maximum == count then item.mutations = values end end end return item end local function targetMatches(slot, prompt, config) local valid, reason = targetConfigValid(config) if not valid then return false, reason end if TargetPolicy and type(TargetPolicy.Matches) == "function" then local ok, matches, why = pcall(TargetPolicy.Matches, targetMetadata(slot, prompt), config, "Steal") return ok and matches == true, ok and why or "Target metadata could not be checked" end return true end local function fingerprint(model) if not model or not model:IsA("Model") then return nil end local descendants = model:GetDescendants() if #descendants > 500 then return nil end local parts = {} for _, part in ipairs(descendants) do if part:IsA("BasePart") then local ok, value = pcall(function() local mesh = part:FindFirstChildOfClass("SpecialMesh") return part.ClassName .. ":" .. part.Name .. ":" .. tostring(part.Size) .. ":" .. (part:IsA("MeshPart") and tostring(part.MeshId) .. ":" .. tostring(part.TextureID) or "") .. ":" .. (mesh and tostring(mesh.MeshId) .. ":" .. tostring(mesh.TextureId) or "") end) if not ok then return nil end parts[#parts + 1] = value end end if #parts == 0 then return nil end table.sort(parts) return table.concat(parts, "|") end local function point(prompt, slot) local parent = prompt and prompt.Parent if parent and parent:IsA("Attachment") then return parent.WorldPosition end if parent and parent:IsA("BasePart") then return parent.Position end local pad = slot and slot:FindFirstChild("PadInner") return pad and pad:IsA("BasePart") and pad.Position or nil end local function deliveryZone(base) local model = base and base:FindFirstChild("BaseModel") local zone = model and model:FindFirstChild("CollectZoneTrigger") return zone and zone:IsA("BasePart") and zone:IsDescendantOf(base) and zone or nil end local function deliveryRoom(base, pending) local snapshot, occupied, total = slots(base) local expected = 0 for _ in pairs(pending.before) do expected += 1 end if not snapshot or total < expected or total == 0 then return true end return occupied < total end local function unlocked(base) local remaining = base:GetAttribute("LockTime") local model = base:FindFirstChild("BaseModel") local door = model and model:FindFirstChild("LaserDoor") return type(remaining) == "number" and remaining == remaining and remaining <= 0 and door and door:IsA("BasePart") and door.CanCollide == false end local function pact(base) local char = player.Character local blocker = char and char:FindFirstChild("BaseDoorBlockerPart") return blocker and blocker:FindFirstChild("BasePact_" .. base.Name) ~= nil end local function inBaseFloor(base, slot, part) local bounds = base:FindFirstChild("InsideBaseBounds") if not bounds or not bounds:IsA("BasePart") then return false end local p = bounds.CFrame:PointToObjectSpace(part.Position) if math.abs(p.X) > bounds.Size.X * 0.5 or math.abs(p.Y) > bounds.Size.Y * 0.5 or math.abs(p.Z) > bounds.Size.Z * 0.5 then return false end local floor = 0 local floors = base:FindFirstChild("BaseFloors") if floors then local seen = 0 for _, model in ipairs(floors:GetChildren()) do seen += 1 if seen > 12 then return false end local index = tonumber(model.Name) local origin = model:FindFirstChild("Origin") if index and origin and part.Position.Y > origin.Position.Y then floor = math.max(floor, index) end end end return slot:GetAttribute("FloorIndex") == floor end local function release() local prompt = held held = nil if prompt then local pending = state.StealPending if pending and pending.stage == "acquiring" then pending.releaseAt = os.clock() end pcall(function() prompt:InputHoldEnd() end) end end function module:Stop() epoch += 1 local pending = state.StealPending if pending and pending.stage == "acquiring" then pending.ambiguous = true end release() if active then navigator:Stop() end end function module:HasPending() return state.StealPending ~= nil end local function report(status, attempted, pause) local hasCarry = carrying() return { success = false, stolen = 0, status = status, attempted = attempted == true, carrying = hasCarry, pending = state.StealPending, pauseRequired = pause == true, } end local function receipt(pending) if pending.stage ~= "carrying" or pending.observedCarry ~= true or not pending.carryModel then return false end local hasCarry = carrying() if hasCarry or ownBase() ~= pending.ownBase then return false end local sourceClear = pending.slot:IsDescendantOf(pending.base) and pending.slot:GetAttribute("Occupied") == false if not sourceClear then return false end local current = slots(pending.ownBase) if not current then return false end for slot, occupied in pairs(current) do if occupied and pending.before[slot] == false and sameContent(slot, pending.content) then return true end end return false end local function candidateValid(candidate, config, home, reserved) if ownBase() ~= home or not root() or player.Character ~= candidate.character then return false, "Character or own base changed" end if state.Pending then return false, "Waiting for incoming purchase delivery" end if carrying() then return false, "Already carrying an item" end local avoid, why = protected(config, candidate.ownerId, candidate.ownerName) if avoid then return false, why end if candidate.base == home or candidate.base:GetAttribute("OwnerId") ~= candidate.ownerId or not candidate.base:IsDescendantOf(workspace) then return false, "Source owner changed" end if not unlocked(candidate.base) or pact(candidate.base) then return false, "Source base locked or pact protected" end if candidate.slot:GetAttribute("Occupied") ~= true or candidate.slot:GetAttribute("Stolen") == true or not candidate.slot:IsDescendantOf(candidate.base) or not sameContent(candidate.slot, candidate.content) or candidate.slot:FindFirstChild("EXPLOIT_MODEL") ~= candidate.content.visual then return false, "Source pad contents changed" end if not candidate.prompt:IsDescendantOf(candidate.slot) then return false, "Native grab prompt changed" end local matches, reason = targetMatches(candidate.slot, candidate.prompt, config) if not matches then return false, reason end return room(home, config, reserved, false) end local function choose(config, home, reserved, abort) local allowed, why = room(home, config, reserved, false) if not allowed then return nil, why end local bases = workspace:FindFirstChild("Bases") local part = root() if not bases or not part then return nil, "Waiting for bases and character" end local children = bases:GetChildren() table.sort(children, function(a, b) return a.Name < b.Name end) local candidates = {} for index, base in ipairs(children) do if index > 16 or #candidates >= 128 then break end if cancelled(abort) then return nil, "Cancelled" end local ownerId = base:GetAttribute("OwnerId") local owner = integer(ownerId) and Players:GetPlayerByUserId(ownerId) local avoid = owner and protected(config, ownerId, owner.Name) if base ~= home and owner and ownerId ~= player.UserId and not avoid and unlocked(base) and not pact(base) then local folder = base:FindFirstChild("Slots") local sourceSlots = folder and folder:GetChildren() or {} for count, slot in ipairs(sourceSlots) do if count > 120 or #candidates >= 128 then break end if slot:IsA("Model") and slot:GetAttribute("Occupied") == true and not slot:GetAttribute("Stolen") and (retryAt[slot] or 0) <= os.clock() then local storage = slot:FindFirstChild("PromptsStorage") local prompt = storage and storage:FindFirstChild("GrabPrompt") local content = metadata(slot) local destination = prompt and point(prompt, slot) if prompt and prompt:IsA("ProximityPrompt") and content and content.visual and destination and targetMatches(slot, prompt, config) then candidates[#candidates + 1] = { base = base, slot = slot, prompt = prompt, content = content, ownerId = ownerId, ownerName = owner.Name, character = player.Character, distance = (destination - part.Position).Magnitude, } end end if count % 40 == 0 then task.wait() end end end end table.sort(candidates, function(a, b) if a.distance ~= b.distance then return a.distance < b.distance end return a.base.Name .. "/" .. a.slot.Name < b.base.Name .. "/" .. b.slot.Name end) return candidates[1], "No eligible unlocked enemy pads" end function module:Run(config, abort, reserved) if busy then return report("Auto steal is already running", false) end if type(config) ~= "table" then return report("Invalid auto-steal configuration", false, true) end if state.StealPending and receipt(state.StealPending) then state.StealPending = nil return { success = true, stolen = 1, attempted = true, carrying = false, status = "Content-matched own-pad delivery confirmed", } end local oldIntent = state.StealPending if oldIntent and oldIntent.stage == "review" and not carrying() then state.StealPending = nil return report("Manual carry ended; no automatic steal receipt counted", true) end if oldIntent and oldIntent.stage == "acquiring" and not carrying() and os.clock() - (oldIntent.releaseAt or oldIntent.ackAfter or oldIntent.at) >= 4 and oldIntent.slot:GetAttribute("Stolen") == false and sameContent(oldIntent.slot, oldIntent.content) then retryAt[oldIntent.slot] = os.clock() + 20 state.StealPending = nil return report("No native acquisition after acknowledgement grace", true) end local list, why = protections(config) if config.AutoSteal ~= true or not list then if state.StealPending and state.StealPending.stage == "acquiring" then state.StealPending.ambiguous = true end return report( config.AutoSteal ~= true and "Auto steal disabled; tracked carry retained" or why, false, state.StealPending ~= nil ) end if not state.StealPending then local valid, reason = targetConfigValid(config) if not valid then return report(reason, false) end end reserved = reserved or 0 busy = true active = true local token = epoch local function stopped() return token ~= epoch or cancelled(abort) or config.AutoSteal ~= true end local function waitUntil(predicate, seconds) local deadline = os.clock() + seconds repeat if stopped() then if state.StealPending and state.StealPending.stage == "acquiring" then state.StealPending.ambiguous = true end return nil, "Cancelled" end local value = predicate() if value then return value end task.wait(0.05) until os.clock() >= deadline return nil, "Timed out" end local result local ok, err = xpcall(function() if stopped() then result = report("Cancelled", false) return end local home = ownBase() if not home or not root() then result = report("Waiting for owned base and character", false) return end local pending = state.StealPending if pending and pending.stage == "review" then if not carrying() then state.StealPending = nil result = report("Manual carry ended; no automatic steal receipt counted", true) else result = report(pending.reviewReason or "Ambiguous carry retained for manual review", true, true) end return end if not pending then if carrying() then result = report("Manual carry detected; auto steal will not take over", false) return end if state.Pending then result = report("Waiting for incoming purchase delivery", false) return end local nativeZone = deliveryZone(home) if not nativeZone then result = report("Waiting for own native delivery point before taking an item", false) return end local knownDeliveryPoint = nativeZone.Position local candidate, reason = choose(config, home, reserved, stopped) if not candidate then result = report(reason, false) return end local function approachAbort() return stopped() or not candidateValid(candidate, config, home, reserved) end local reached, routeReason = navigator:GoTo(function() return not approachAbort() and point(candidate.prompt, candidate.slot) or nil end, 3, 35, approachAbort) if not reached or approachAbort() then retryAt[candidate.slot] = os.clock() + 15 result = report("Steal approach: " .. tostring(routeReason), true) return end local prompt = candidate.prompt local ready = waitUntil(function() if approachAbort() then return "changed" end local part = root() local destination = point(prompt, candidate.slot) return prompt.Enabled and prompt.MaxActivationDistance > 0 and part and destination and (part.Position - destination).Magnitude <= math.max( 0, prompt.MaxActivationDistance - 1 ) and inBaseFloor(candidate.base, candidate.slot, part) and true or nil end, 2) if ready ~= true or approachAbort() then retryAt[candidate.slot] = os.clock() + 15 result = report("Native grab prompt is not active on this floor", true) return end local duration = prompt.HoldDuration local signature = fingerprint(candidate.content.visual) if type(duration) ~= "number" or duration ~= duration or duration < 0 or duration > 120 or not signature then retryAt[candidate.slot] = os.clock() + 30 result = report("Native hold or carried-content identity is unavailable", true) return end local _, _, before = room(home, config, reserved, false) if not before then result = report("Own capacity changed before grabbing", true) return end pending = { stage = "acquiring", base = candidate.base, slot = candidate.slot, content = candidate.content, ownerId = candidate.ownerId, ownerName = candidate.ownerName, ownBase = home, before = before, character = player.Character, signature = signature, at = os.clock(), ackAfter = os.clock() + duration + 0.2, deliveryPoint = knownDeliveryPoint, } state.StealPending = pending if dependencies and type(dependencies.BeforeAcquire) == "function" then local here = root() local distance = here and (here.Position - knownDeliveryPoint).Magnitude or math.huge local ok, released = pcall( dependencies.BeforeAcquire, approachAbort, { HoldDuration = duration, ReturnDistance = distance } ) if not ok or released == false or approachAbort() then state.StealPending = nil result = report("Travel tool release interrupted before grabbing", true) return end end held = prompt local began, holdError = pcall(function() prompt:InputHoldBegin() local untilTime = os.clock() + duration + 0.2 while os.clock() < untilTime do if stopped() then break end local hasCarry, carryModel = carrying() if hasCarry and carryModel and player:GetAttribute("HoldingExploit") == true and candidate.base:GetAttribute("OwnerId") == candidate.ownerId and candidate.slot:GetAttribute("Stolen") == true and sameContent(candidate.slot, candidate.content) and fingerprint(carryModel) == pending.signature then pending.carryModel = carryModel pending.stage = "carrying" pending.observedCarry = true break end if player:GetAttribute("HoldingExploit") == true then break end if pending.stage == "acquiring" and not targetMatches(candidate.slot, prompt, config) then pending.ambiguous = true pending.filterRejected = true break end local part = root() local destination = point(prompt, candidate.slot) local avoid = protected(config, candidate.ownerId, candidate.ownerName) if avoid or not candidateValid(candidate, config, home, reserved) or not prompt.Enabled or not part or not destination or (part.Position - destination).Magnitude > prompt.MaxActivationDistance - 0.5 then break end task.wait(0.03) end end) if pending.stage == "acquiring" and not carrying() and not targetMatches(candidate.slot, prompt, config) then pending.ambiguous = true pending.filterRejected = true end release() pending.ackAfter = os.clock() if not began then result = report("Native grab failed: " .. tostring(holdError), true) return end if stopped() then pending.ambiguous = true result = report("Stopped; acquisition intent retained for acknowledgement", true) return end end if pending.ownBase ~= home then if not carrying() then state.StealPending = nil end result = report("Tracked carry belongs to a changed base; review manually", true, true) return end local avoid, reason = protected(config, pending.ownerId, pending.ownerName) if avoid then result = report( reason .. ( carrying() and "; held item retained for manual handling" or "; acquisition intent retained for acknowledgement" ), true, true ) return end local acknowledged, ackReason = waitUntil(function() if receipt(pending) then return "delivered" end if pending.base:GetAttribute("OwnerId") ~= pending.ownerId or not pending.slot:IsDescendantOf(pending.base) then return "owner-changed" end local hasCarry, model = carrying() if player.Character ~= pending.character then return "character-changed" end if model and ( fingerprint(model) ~= pending.signature or (pending.carryModel and pending.carryModel ~= model) ) then return "mismatch" end if hasCarry and pending.ambiguous and pending.stage == "acquiring" then return "ambiguous" end if hasCarry and model and player:GetAttribute("HoldingExploit") == true and pending.slot:GetAttribute("Stolen") == true and sameContent(pending.slot, pending.content) then pending.carryModel = model pending.stage = "carrying" pending.observedCarry = true return "carrying" end if hasCarry then pending.missingSince = nil elseif pending.stage == "acquiring" then if os.clock() - (pending.releaseAt or pending.ackAfter or pending.at) >= 3.9 then return "ended" end else pending.missingSince = pending.missingSince or os.clock() if os.clock() - pending.missingSince >= 3.9 then return "ended" end end end, 4) if acknowledged == "delivered" then state.StealPending = nil result = { success = true, stolen = 1, attempted = true, carrying = false, status = "Content-matched own-pad delivery confirmed", } return end if acknowledged == "ended" or acknowledged == "character-changed" and not carrying() then retryAt[pending.slot] = os.clock() + 20 state.StealPending = nil result = report("Carry ended without a content-matched delivery receipt", true) return end if acknowledged ~= "carrying" then local review = acknowledged == "mismatch" or acknowledged == "owner-changed" or acknowledged == "ambiguous" or acknowledged == "character-changed" local status = acknowledged == "mismatch" and "Carried item differs from the tracked acquisition; review manually" or acknowledged == "owner-changed" and "Source owner or pad changed; tracked carry retained for manual review" or acknowledged == "ambiguous" and "Carry appeared after acquisition was interrupted; review manually" or acknowledged == "character-changed" and "Character changed with an extant carry; review manually" or ("Waiting for tracked carry acknowledgement: " .. tostring(ackReason or acknowledged)) if review and carrying() then pending.stage = "review" pending.reviewReason = status end result = report(status, true, review) return end if not deliveryRoom(home, pending) then result = report("No native free pad for the tracked carry; held item retained", true, true) return end local zone = deliveryZone(home) if not zone and not pending.deliveryPoint then result = report("No previously observed own delivery point; held item retained", true, true) return end local function deliveryAbort() local block = protected(config, pending.ownerId, pending.ownerName) local hasCarry, currentModel = carrying() return stopped() or block or ownBase() ~= home or player.Character ~= pending.character or not root() or pending.base:GetAttribute("OwnerId") ~= pending.ownerId or not pending.slot:IsDescendantOf(pending.base) or not deliveryRoom(home, pending) or not hasCarry or currentModel ~= pending.carryModel end local reached, reason = navigator:GoTo(function() zone = deliveryZone(home) return not deliveryAbort() and (zone and zone.Position or pending.deliveryPoint) or nil end, 0.8, 55, deliveryAbort) if stopped() then result = report("Stopped; tracked carry retained", true) return end local delivered, deliveryReason = waitUntil(function() if receipt(pending) then return true end if pending.base:GetAttribute("OwnerId") ~= pending.ownerId or not pending.slot:IsDescendantOf(pending.base) then return "owner-changed" end local block = protected(config, pending.ownerId, pending.ownerName) if block then return "protected" end end, 4) if delivered == true then state.StealPending = nil result = { success = true, stolen = 1, attempted = true, carrying = false, status = "Content-matched own-pad delivery confirmed", } return end if not carrying() then state.StealPending = nil end result = report( delivered == "owner-changed" and "Source owner or pad changed; tracked carry retained for manual review" or delivered == "protected" and "Source owner became protected; held item retained for manual handling" or ("Delivery not confirmed: " .. tostring(reached and deliveryReason or reason)), true, state.StealPending ~= nil ) end, debug.traceback) release() active = false busy = false if not ok then return report("Auto steal stopped after an error: " .. tostring(err), true, true) end return result or report("No steal action", false) end return module end end)() local createCatalogProvider = (function() return function(seed, options) options = options or {} local function normalized(value) return type(value) == "string" and value:match("^%s*(.-)%s*$"):lower() or nil end local function text(value, limit) return type(value) == "string" and #value > 0 and #value <= (limit or 256) and normalized(value) ~= "" and not value:find("[%z\r\n]") end local function array(value, maximum, empty) if type(value) ~= "table" then return false end local count, last = 0, 0 for key in pairs(value) do count += 1 if count > maximum or type(key) ~= "number" or key < 1 or key > maximum or key % 1 ~= 0 then return false end last = math.max(last, key) end return last == count and (empty or count > 0) end local function alphabetical(a, b) local x, y = a:lower(), b:lower() return x ~= y and x < y or x == y and a < b end local function modelPath(path) return text(path, 1024) and path:sub(1, 18) == "ReplicatedStorage." and not path:find("ClientModelReferenceFolder", 1, true) end local function build(data, source) if type(data) ~= "table" or not array(data.Items, 512, false) or not array(data.Mutations, 64, true) or not array(data.Weathers, 16, true) then return nil, "Malformed catalogue arrays" end for _, key in ipairs({ "PlaceId", "UniverseId" }) do if data[key] ~= nil and seed[key] ~= nil and data[key] ~= seed[key] then return nil, "Catalogue belongs to another game" end end if data.PlaceVersion ~= nil and ( type(data.PlaceVersion) ~= "number" or data.PlaceVersion ~= data.PlaceVersion or data.PlaceVersion < 0 or data.PlaceVersion > 9007199254740991 or data.PlaceVersion % 1 ~= 0 ) then return nil, "Invalid catalogue place version" end local result = { Items = {}, Names = {}, Types = {}, Rarities = {}, ByName = {}, ById = {}, ByModelPath = {}, AmbiguousModelPaths = {}, Mutations = {}, MutationNames = {}, MutationsById = {}, MutationAliases = {}, Weathers = {}, WeathersById = {}, WeatherMutations = {}, WeatherMutationNames = {}, RarityRanks = {}, Source = source, PlaceId = seed.PlaceId, UniverseId = seed.UniverseId, PlaceVersion = data.PlaceVersion or seed.PlaceVersion, ExtractedDate = seed.ExtractedDate, CloneReferenceRoot = seed.CloneReferenceRoot, CloneReferencesAreUnique = false, } local types, rarities = {}, {} for _, rarity in ipairs(seed.Rarities or {}) do if text(rarity, 64) and not rarities[rarity] then rarities[rarity] = true result.Rarities[#result.Rarities + 1] = rarity end end for _, raw in ipairs(data.Items) do if type(raw) ~= "table" or not text(raw.id, 128) or not text(raw.name) or not text(raw.type, 64) or not text(raw.rarity, 64) or not modelPath(raw.modelPath) then return nil, "Malformed native item metadata" end local key = normalized(raw.name) if result.ByName[key] or result.ById[raw.id] then return nil, "Ambiguous native item name or ID" end local rank = raw.rarityRank if rank ~= nil and (type(rank) ~= "number" or rank ~= rank or rank % 1 ~= 0 or rank < -32768 or rank > 32767) then return nil, "Invalid native rarity rank" end if rank ~= nil and result.RarityRanks[raw.rarity] ~= nil and result.RarityRanks[raw.rarity] ~= rank then return nil, "Inconsistent native rarity ranks" end if rank ~= nil then result.RarityRanks[raw.rarity] = rank end local item = table.freeze({ id = raw.id, name = raw.name, type = raw.type, rarity = raw.rarity, modelPath = raw.modelPath, rarityRank = rank, }) result.Items[#result.Items + 1] = item result.Names[#result.Names + 1] = item.name result.ByName[key] = item result.ById[item.id] = item types[item.type] = true if not rarities[item.rarity] then rarities[item.rarity] = true result.Rarities[#result.Rarities + 1] = item.rarity end if result.ByModelPath[item.modelPath] or result.AmbiguousModelPaths[item.modelPath] then result.ByModelPath[item.modelPath] = nil result.AmbiguousModelPaths[item.modelPath] = true else result.ByModelPath[item.modelPath] = item end end for kind in pairs(types) do result.Types[#result.Types + 1] = kind end for _, raw in ipairs(data.Mutations) do if type(raw) ~= "table" or not text(raw.id, 128) or not text(raw.name) or type(raw.color) ~= "string" or not raw.color:match("^%x%x%x%x%x%x$") then return nil, "Malformed native mutation metadata" end if result.MutationsById[raw.id] then return nil, "Ambiguous native mutation ID" end for _, alias in ipairs({ normalized(raw.id), normalized(raw.name) }) do if result.MutationAliases[alias] and result.MutationAliases[alias] ~= raw.id then return nil, "Ambiguous native mutation alias" end result.MutationAliases[alias] = raw.id end local mutation = table.freeze({ id = raw.id, name = raw.name, color = raw.color:lower() }) result.Mutations[#result.Mutations + 1] = mutation result.MutationNames[#result.MutationNames + 1] = mutation.name result.MutationsById[mutation.id] = mutation end local weatherNames = {} for _, raw in ipairs(data.Weathers) do if type(raw) ~= "table" or not text(raw.id, 128) or not text(raw.name) or not text(raw.mutationId, 128) or not text(raw.mutationName) or result.WeathersById[raw.id] then return nil, "Malformed native weather metadata" end local mutation = result.MutationsById[raw.mutationId] if not mutation or mutation.name ~= raw.mutationName or (raw.color ~= nil and raw.color:lower() ~= mutation.color) then return nil, "Weather references an unknown or inconsistent mutation" end local weather = table.freeze({ id = raw.id, name = raw.name, mutationId = mutation.id, mutationName = mutation.name, color = mutation.color, }) result.Weathers[#result.Weathers + 1] = weather result.WeathersById[weather.id] = weather if not weatherNames[mutation.id] then weatherNames[mutation.id] = true result.WeatherMutations[#result.WeatherMutations + 1] = mutation result.WeatherMutationNames[#result.WeatherMutationNames + 1] = mutation.name end end table.sort(result.Names, alphabetical) table.sort(result.Types, alphabetical) table.sort(result.MutationNames, alphabetical) table.sort(result.WeatherMutationNames, alphabetical) function result.Resolve(name, reference) local named if name ~= nil then named = result.ByName[normalized(name)] if not named then return nil, "Unknown exact item name" end end if reference ~= nil then local path if type(reference) == "string" then path = reference elseif typeof(reference) == "Instance" then local ok, value = pcall(function() return reference:GetFullName() end) if ok then path = value end end if not path or (not result.ByModelPath[path] and not result.AmbiguousModelPaths[path]) then return nil, "Unknown or noncanonical model reference" end if named and named.modelPath ~= path then return nil, "Item name and canonical model disagree" end if not named and result.AmbiguousModelPaths[path] then return nil, "Model reference requires an exact item name" end named = named or result.ByModelPath[path] end return named, named and "Exact native catalogue identity" or "Item identity is unavailable" end for _, value in pairs(result) do if type(value) == "table" then table.freeze(value) end end return table.freeze(result) end local function signature(snapshot) local rows = {} local function record(kind, values) local parts = { kind } for _, value in ipairs(values) do local word = tostring(value) parts[#parts + 1] = tostring(#word) .. ":" .. word end rows[#rows + 1] = table.concat(parts, "|") end record("source", { snapshot.Source, tostring(snapshot.PlaceVersion) }) for _, item in ipairs(snapshot.Items) do record( "item", { item.id, item.name, item.type, item.rarity, item.modelPath, tostring(item.rarityRank) } ) end for _, item in ipairs(snapshot.Mutations) do record("mutation", { item.id, item.name, item.color }) end for _, item in ipairs(snapshot.Weathers) do record("weather", { item.id, item.name, item.mutationId, item.mutationName, item.color }) end table.sort(rows) return table.concat(rows, "\n") end assert(type(seed) == "table", "A bundled catalogue seed is required") local fallback, seedError = build(seed, "bundled") assert(fallback, seedError or "Invalid bundled catalogue") local current = fallback local currentSignature = signature(current) local provider = { Generation = 0, Status = "Using bundled catalogue snapshot" } provider.Catalog = table.freeze(setmetatable( { Resolve = function(name, reference) return current.Resolve(name, reference) end, }, table.freeze({ __index = function(_, key) return current[key] end, }) )) local function defaultReader() if type(getloadedmodules) ~= "function" or type(require) ~= "function" then return nil, "Loaded-module inspection unavailable" end if game.GameId ~= seed.UniverseId or game.PlaceId ~= seed.PlaceId then return nil, "Unsupported game for native catalogue" end local replicated = game:GetService("ReplicatedStorage") local client = replicated:FindFirstChild("Client") local shared = replicated:FindFirstChild("Shared") local dataModule = client and client:FindFirstChild("ClientGameData") local clockModule = shared and shared:FindFirstChild("WorldClock") if not dataModule or not clockModule then return nil, "Native catalogue modules unavailable" end local loaded = getloadedmodules() if type(loaded) ~= "table" then return nil, "Loaded-module inspection unavailable" end local dataReady, clockReady = false, false for index, module in ipairs(loaded) do if index > 4096 then return nil, "Loaded-module inspection limit reached" end if module == dataModule then dataReady = true elseif module == clockModule then clockReady = true end if dataReady and clockReady then break end end if not dataReady or not clockReady then return nil, "Native modules are not already loaded" end local data = require(dataModule) local clock = require(clockModule) if type(data) ~= "table" or type(clock) ~= "table" then return nil, "Native cached exports unavailable" end local exploits, mutations, weathers = rawget(data, "Exploits"), rawget(data, "Mutations"), rawget(clock, "Weathers") if not array(exploits, 512, false) or not array(mutations, 64, true) or type(weathers) ~= "table" then return nil, "Native cached exports are incomplete" end local result = { Items = {}, Mutations = {}, Weathers = {}, PlaceId = game.PlaceId, UniverseId = game.GameId, PlaceVersion = game.PlaceVersion, } for _, raw in ipairs(exploits) do if type(raw) ~= "table" then return nil, "Malformed cached item" end local model = rawget(raw, "VisualModel") if typeof(model) ~= "Instance" or not model:IsA("Model") or not model:IsDescendantOf(replicated) then return nil, "Native item lacks a replicated canonical model" end result.Items[#result.Items + 1] = { id = rawget(raw, "Id"), name = rawget(raw, "Name"), type = rawget(raw, "Type"), rarity = rawget(raw, "Rarity"), rarityRank = rawget(raw, "RarityRank"), modelPath = model:GetFullName(), } end for _, raw in ipairs(mutations) do if type(raw) ~= "table" then return nil, "Malformed cached mutation" end result.Mutations[#result.Mutations + 1] = { id = rawget(raw, "Id"), name = rawget(raw, "Name"), color = rawget(raw, "Color") } end local count = 0 for id, raw in pairs(weathers) do count += 1 if count > 16 or type(raw) ~= "table" then return nil, "Malformed cached weather" end result.Weathers[#result.Weathers + 1] = { id = id, name = rawget(raw, "Name"), mutationId = rawget(raw, "MutationId"), mutationName = rawget(raw, "MutationName"), } end return result end function provider:GetStatus() return self.Status end function provider:GetSnapshot() return current end local refreshing = false function provider:Refresh() if refreshing then return false, "Catalogue refresh is already running" end refreshing = true local read = options.ReadNativeCache or defaultReader local ok, payload, reason = pcall(read) local snapshot, invalid if ok and payload then local built, value, detail = pcall(build, payload, "native-cache") if built then snapshot, invalid = value, detail else invalid = "Native metadata validation failed" end end if not snapshot then snapshot = fallback self.Status = "Using bundled catalogue: " .. tostring(invalid or (ok and reason) or "Native cache read failed") else self.Status = "Using already-loaded native catalogue" end local nextSignature = signature(snapshot) local changed = nextSignature ~= currentSignature if changed then current = snapshot currentSignature = nextSignature self.Generation += 1 end refreshing = false return changed, self.Status end if options.AutoRefresh ~= false then provider:Refresh() end return provider end end)() local createTravelTool = (function() local function createTravelTool(player, callbacks) callbacks = callbacks or {} local helper = { Status = "Idle", EquippedByHelper = false, ManualOverride = false, Stats = { equips = 0, restores = 0, releases = 0, errors = 0 }, } local lease, deferred, cycleCharacter, cycleBase local yielded, destroyed = false, false local lastTick, lastEquip, equipAttempts = -math.huge, -math.huge, 0 local function call(fn, fallback) if type(fn) ~= "function" then return fallback end local ok, value = pcall(fn) if ok then return value end return fallback end local function backpack() return player:FindFirstChild("Backpack") end local function owned(tool, character) local bag = backpack() return tool and tool:IsA("Tool") and tool.Parent ~= nil and ((bag ~= nil and tool.Parent == bag) or (character ~= nil and tool.Parent == character)) end local function characterInfo() local character = player.Character local humanoid = character and character:FindFirstChildOfClass("Humanoid") local root = character and character:FindFirstChild("HumanoidRootPart") if not humanoid or humanoid.Health <= 0 or not root or not root:IsA("BasePart") or not character:IsDescendantOf(workspace) then return character end return character, humanoid, root end local function selected(character) if not character then return nil, false end local children = character:GetChildren() if #children > 128 then return nil, true end local tool, count = nil, 0 for _, child in ipairs(children) do if child:IsA("Tool") then tool = child count += 1 end end return tool, count > 1 end local function nativeCarry(character) return player:GetAttribute("HoldingExploit") == true or character and character:FindFirstChild("HOLDING_EXPLOIT_MODEL") ~= nil end local function blocked(character) return nativeCarry(character) or call(callbacks.IsCarrying, true) or character and character:HasTag("IsRagdolled") end local function flight(tool) if not tool then return false end local tip = tostring(tool.ToolTip or ""):lower() return tool.Name == "FlyScript" or tip:find("fly", 1, true) ~= nil or tip:find("flight", 1, true) ~= nil end local function isSpeedHack(tool) if not tool or not tool:IsA("Tool") or tool.Name ~= "SpeedCoil" or tool.ToolTip ~= "Speed Hack" or tool.RequiresHandle ~= true then return false end local settings = tool:FindFirstChild("Settings") local raw = settings and settings:IsA("Configuration") and settings:GetAttribute("SpeedMultiplier") local multiplier = (type(raw) == "number" or type(raw) == "string") and tonumber(raw) return multiplier and multiplier == multiplier and multiplier > 1 and multiplier < math.huge or false end local function uniqueOwnedName(tool, character) local count = 0 for _, container in ipairs({ backpack(), character }) do if container then local children = container:GetChildren() if #children > 128 then return false end for _, child in ipairs(children) do if child:IsA("Tool") and child.Name == tool.Name then count += 1 end end end end return count == 1 end local function activate(tool, character) if type(firesignal) ~= "function" or not owned(tool, character) or not uniqueOwnedName(tool, character) then return false, false end local gui = player:FindFirstChild("PlayerGui") local screen = gui and gui:FindFirstChild("HotbarUI") local bar = screen and screen:FindFirstChild("Hotbar") if not bar then return false, false end local entry, count = nil, 0 for index, child in ipairs(bar:GetChildren()) do if index > 128 then return false, false end if child.Name == tool.Name then entry = child count += 1 end end if count ~= 1 then return false, false end local button = entry:IsA("GuiButton") and entry or nil if not button then local descendants = entry:GetDescendants() if #descendants > 32 then return false, false end local found = 0 for _, child in ipairs(descendants) do if child:IsA("GuiButton") then button = child found += 1 end end if found ~= 1 then return false, false end end local ok = pcall(firesignal, button.Activated) if not ok then helper.Stats.errors += 1 end return ok, true end local function outside(base, root) if not base or base:GetAttribute("OwnerId") ~= player.UserId then return nil end local bounds = base:FindFirstChild("InsideBaseBounds") if not bounds or not bounds:IsA("BasePart") then return nil end local ok, point = pcall(function() return bounds.CFrame:PointToObjectSpace(root.Position) end) local size = bounds.Size if not ok or not point or point.X ~= point.X or point.Y ~= point.Y or point.Z ~= point.Z or math.abs(point.X) == math.huge or math.abs(point.Y) == math.huge or math.abs(point.Z) == math.huge or size.X <= 0 or size.Y <= 0 or size.Z <= 0 then return nil end return math.abs(point.X) > size.X * 0.5 or math.abs(point.Y) > size.Y * 0.5 or math.abs(point.Z) > size.Z * 0.5 end local function finishRelease(current, character) if not lease or not lease.releasing then return false end if current == lease.desired then if not lease.desired and owned(lease.previous, character) then deferred = { tool = lease.previous, character = character, attempts = 0, at = -math.huge } end helper.Stats[lease.desired and "restores" or "releases"] += 1 lease = nil helper.EquippedByHelper = false return true end return false end local function release(reason) helper.Status = reason if not lease then return end local character, humanoid = characterInfo() if character ~= lease.character or not humanoid then lease = nil deferred = nil helper.EquippedByHelper = false return end local current, ambiguous = selected(character) if ambiguous then lease = nil deferred = nil yielded = true helper.EquippedByHelper = false return end if finishRelease(current, character) then return end if current ~= lease.speed then if not lease.observed and os.clock() - lease.at < 0.6 and current == lease.previous then return end lease = nil helper.EquippedByHelper = false yielded = true helper.ManualOverride = true return end if nativeCarry(character) then helper.Status = "Carrying - native equipment left unchanged" return end local canRestore = not blocked(character) and owned(lease.previous, character) if not lease.releasing then lease.releasing = true lease.desired = canRestore and lease.previous or nil lease.releaseAttempts = 0 lease.releaseAt = -math.huge end if lease.releaseAttempts >= 2 then helper.Status = "Native restore not confirmed" return end if os.clock() - lease.releaseAt < 1 then return end local activated, attempted = activate(lease.desired or lease.speed, character) if not attempted and lease.desired then activated, attempted = activate(lease.speed, character) if attempted then lease.desired = nil end end if attempted then lease.releaseAttempts += 1 lease.releaseAt = os.clock() end if not activated then helper.Status = "Native restore unavailable" return end finishRelease(selected(character), character) end local function restoreDeferred(character, humanoid) if not deferred then return false end if deferred.character ~= character or not humanoid or not owned(deferred.tool, character) then deferred = nil return false end local current, ambiguous = selected(character) if current == deferred.tool then deferred = nil return false end if current or ambiguous then deferred = nil yielded = true helper.ManualOverride = true return false end if blocked(character) then return true end if deferred.attempts >= 2 or os.clock() - deferred.at < 1 then return true end local activated, attempted = activate(deferred.tool, character) if attempted then deferred.attempts += 1 deferred.at = os.clock() end if activated and selected(character) == deferred.tool then helper.Stats.restores += 1 deferred = nil end return true end function helper:Stop() if destroyed then return true, "Destroyed" end yielded = true release("Travel equipment stopped") local character, humanoid = characterInfo() restoreDeferred(character, humanoid) return lease == nil, self.Status end function helper:Destroy() if destroyed then return end self:Stop() destroyed = true lease = nil deferred = nil self.EquippedByHelper = false self.Status = "Destroyed" end local function tick() local character, humanoid, root = characterInfo() if lease and lease.character ~= character then lease = nil deferred = nil helper.EquippedByHelper = false end if deferred and deferred.character ~= character then deferred = nil end local active = call(callbacks.IsActive, false) == true local base = call(callbacks.GetBase, nil) local isOutside if humanoid and root then isOutside = outside(base, root) end if not active or not humanoid or isOutside ~= true then release( not active and "Farm paused" or (isOutside == false and "Inside own base" or "Waiting for safe base bounds") ) restoreDeferred(character, humanoid) if not lease and not deferred then cycleCharacter, cycleBase = nil, nil yielded = false equipAttempts = 0 lastEquip = -math.huge helper.ManualOverride = false end return end if cycleCharacter ~= character or cycleBase ~= base then local hadLease = lease ~= nil release("Travel context changed") cycleCharacter, cycleBase = character, base yielded = false equipAttempts = 0 lastEquip = -math.huge helper.ManualOverride = false if hadLease then return end end if blocked(character) then yielded = true release("Carrying or ragdolled - speed tool suspended") return end if restoreDeferred(character, humanoid) then return end local current, ambiguous = selected(character) if lease then if finishRelease(current, character) then return end if lease.releasing then release("Restoring previous equipment") return end if current == lease.speed then if not lease.observed then helper.Stats.equips += 1 lease.observed = true end helper.EquippedByHelper = true helper.Status = "Native Speed Hack equipped" return end if not lease.observed and current == lease.previous and os.clock() - lease.at < 0.6 then return end if lease.observed or current ~= lease.previous then lease = nil yielded = true helper.EquippedByHelper = false helper.ManualOverride = true helper.Status = "Manual equipment selection respected" return end lease = nil helper.EquippedByHelper = false end if yielded then helper.Status = "Equipment unchanged until the next outside cycle" return end if ambiguous or flight(current) then yielded = true helper.Status = "Active equipment left unchanged" return end if isSpeedHack(current) then yielded = true helper.Status = "User Speed Hack selection left unchanged" return end if equipAttempts >= 2 or os.clock() - lastEquip < 1 then return end local bag, speed = backpack(), nil if bag then for index, tool in ipairs(bag:GetChildren()) do if index > 128 then break end if isSpeedHack(tool) then if speed then speed = nil break else speed = tool end end end end if not speed then helper.Status = "Owned Speed Hack unavailable" return end lease = { speed = speed, previous = current, character = character, at = os.clock(), observed = false } local activated, attempted = activate(speed, character) if attempted then equipAttempts += 1 lastEquip = os.clock() end if not activated then lease = nil helper.Status = "Native hotbar selection unavailable" return end if selected(character) == speed then lease.observed = true helper.Stats.equips += 1 helper.EquippedByHelper = true helper.Status = "Native Speed Hack equipped" else helper.Status = "Waiting for native equipment selection" end end function helper:Tick() if destroyed then return self.Status end if os.clock() - lastTick < 0.15 then return self.Status end lastTick = os.clock() local ok, err = pcall(tick) if not ok then self.Stats.errors += 1 self.Status = "Travel equipment unavailable: " .. tostring(err):sub(1, 120) end return self.Status end helper.Update = helper.Tick return helper end return createTravelTool end)() local createTopESP = (function() return function(player, Display, CatalogOrProvider) local Players = game:GetService("Players") local HttpService = game:GetService("HttpService") local module, destroyed, generation, job, folder = {}, false, 0, nil, nil local records, nextScan, lastRanking, lastCharacter = {}, 0, nil, nil local stableIds, nextId = setmetatable({}, { __mode = "k" }), 0 local rarityRank = { common = 1, uncommon = 2, rare = 3, epic = 4, legendary = 5, mythic = 6, secret = 7, kernel = 8 } local rankColors = { Color3.fromRGB(255, 210, 65), Color3.fromRGB(80, 225, 255), Color3.fromRGB(255, 85, 215) } local report = { enabled = false, displayed = 0, scanned = 0, status = "ESP disabled", targets = {} } local function normalized(value) return type(value) == "string" and value:match("^%s*(.-)%s*$"):lower() or nil end local function finite(value) return type(value) == "number" and value == value and value > -math.huge and value < math.huge end local function point(value) return typeof(value) == "Vector3" and finite(value.X) and finite(value.Y) and finite(value.Z) end local function root() local character = player.Character local hum = character and character:FindFirstChildOfClass("Humanoid") local part = character and character:FindFirstChild("HumanoidRootPart") return hum and hum.Health > 0 and part and part:IsA("BasePart") and part:IsDescendantOf(workspace) and point(part.Position) and part or nil end local function erase(instance) if instance then pcall(function() instance:Destroy() end) end end local function currentCatalog() local value = CatalogOrProvider if type(value) == "function" then local ok, result = pcall(value) if not ok then return nil end value = result end return type(value) == "table" and type(value.Resolve) == "function" and value or nil end local function visiblePart(part) return part and part:IsA("BasePart") and part:IsDescendantOf(workspace) and point(part.Position) and finite(part.Transparency) and part.Transparency < 1 and (not finite(part.LocalTransparencyModifier) or part.LocalTransparencyModifier < 1) end local function visual(source, conveyor) local model = source:FindFirstChild("EXPLOIT_MODEL") if model and model:IsA("Model") and model:IsDescendantOf(source) and model:IsDescendantOf(workspace) then local descendants = model:GetDescendants() if #descendants > 500 then return nil end local anchor for _, part in ipairs(descendants) do if visiblePart(part) then anchor = part break end end if anchor then local primary = model.PrimaryPart if primary and primary:IsA("BasePart") and primary:IsDescendantOf(model) and point(primary.Position) then anchor = primary end return model, anchor end end if conveyor and visiblePart(source) then return source, source end end local function stillValid(item) if not item.source:IsDescendantOf(item.container) or not item.adornee:IsDescendantOf(item.source) and item.adornee ~= item.source then return false end if not item.adornee:IsDescendantOf(workspace) or not item.anchor:IsDescendantOf(workspace) then return false end if item.base then if item.base:GetAttribute("OwnerId") ~= item.ownerId or item.source:GetAttribute("Occupied") ~= true then return false end end local adornee, anchor = visual(item.source, item.base == nil) return adornee == item.adornee and anchor ~= nil end local function refreshReport() local targets = {} for _, record in pairs(records) do local item = record.item targets[#targets + 1] = { rank = record.rank, name = item.name, rarity = item.rarity, income = item.income, mutations = table.clone(item.mutations), owner = item.owner, source = item.base and "base" or "conveyor", } end table.sort(targets, function(a, b) return a.rank < b.rank end) report.displayed = #targets report.targets = targets end local function clear(status, enabled) generation += 1 if job and job.thread and coroutine.running() ~= job.thread then pcall(task.cancel, job.thread) end job = nil erase(folder) folder = nil records = {} nextScan = 0 report = { enabled = enabled == true, displayed = 0, scanned = 0, status = status or "ESP disabled", targets = {}, } end function module:Stop() clear("ESP disabled", false) end function module:Destroy() if destroyed then return end self:Stop() destroyed = true report.status = "ESP unloaded" end local function readMetadata(source, tag, catalog) if not tag then return nil end local labels = tag:GetDescendants() if #labels > 80 then return nil end local identity, income, incomeText for _, label in ipairs(labels) do if label:IsA("TextLabel") then local text = Display.VisibleText(label.Text) if text then text = text:match("^%s*(.-)%s*$") local known = catalog.Resolve(text) if known then if identity and identity ~= known then return nil end identity = known end local amount = text:match("^(.-)%s*/s%s*$") local quote = amount and Display.ParseMoney(amount, false) if quote then if income ~= nil and income ~= quote.amount then return nil end income = quote.amount incomeText = quote.display or amount end end end end local tier = identity and rarityRank[normalized(identity.rarity)] if not identity or not tier or not finite(income) or income < 0 then return nil end local mutationValue = source:FindFirstChild("Mutations") local raw = mutationValue and mutationValue.Value if type(raw) ~= "string" or #raw > 8192 then return nil end local ok, values = pcall(HttpService.JSONDecode, HttpService, raw) if not ok or type(values) ~= "table" then return nil end local lookup = {} for _, entry in ipairs(catalog.Mutations or {}) do if type(entry) == "table" and type(entry.name) == "string" then lookup[normalized(entry.name)] = entry.name if normalized(entry.id) then lookup[normalized(entry.id)] = entry.name end end end local mutations, seen, maximum, count = {}, {}, 0, 0 for index, id in pairs(values) do if not finite(index) or index < 1 or index % 1 ~= 0 or index > 64 then return nil end local name = lookup[normalized(id)] if not name then return nil end maximum = math.max(maximum, index) count += 1 if not seen[name] then seen[name] = true mutations[#mutations + 1] = name end end if maximum ~= count then return nil end table.sort(mutations) return { name = identity.name, rarity = identity.rarity, tier = tier, income = income, incomeText = tostring(incomeText), mutations = mutations, } end local function scan(config, ranking, catalog, token, character, position) local candidates, seen = {}, {} local scanned = 0 local function live() return not destroyed and generation == token and config.Top3ESP == true and (config.ESPRanking or "Highest income per second") == ranking and player.Character == character and root() ~= nil end local function add(source, container, base, owner, ownerId, key) scanned += 1 if scanned % 16 == 0 then task.wait() if not live() then return false end end local attachment = source:FindFirstChild(base and "NametagAttachment" or "Attachment") local tag = attachment and attachment:FindFirstChild("Nametag") local item = readMetadata(source, tag, catalog) local adornee, anchor = visual(source, base == nil) if item and adornee and not seen[adornee] and point(anchor.Position) then local distance = (anchor.Position - position).Magnitude if finite(distance) then seen[adornee] = true item.source, item.container, item.base = source, container, base item.owner, item.ownerId, item.key = owner, ownerId, key item.adornee, item.anchor, item.distance = adornee, anchor, distance candidates[#candidates + 1] = item end end return true end local bases = workspace:FindFirstChild("Bases") for index, base in ipairs(bases and bases:GetChildren() or {}) do if index > 16 then break end if not live() then return nil end local ownerId = base:GetAttribute("OwnerId") local owner = finite(ownerId) and ownerId > 0 and Players:GetPlayerByUserId(ownerId) local slots = owner and base:FindFirstChild("Slots") if slots then for slotIndex, slot in ipairs(slots:GetChildren()) do if slotIndex > 120 then break end if slot:IsA("Model") and slot:GetAttribute("Occupied") == true then if not add( slot, slots, base, owner.Name, ownerId, "base/" .. base.Name .. "/" .. slot.Name ) then return nil end end end end end local belt = workspace:FindFirstChild("ExploitRots") for index, unit in ipairs(belt and belt:GetChildren() or {}) do if index > 200 then break end if not live() then return nil end if unit:IsA("BasePart") then if not stableIds[unit] then nextId += 1 stableIds[unit] = nextId end if not add( unit, belt, nil, "Conveyor", nil, "conveyor/" .. unit.Name .. "/" .. string.format("%012d", stableIds[unit]) ) then return nil end end end table.sort(candidates, function(a, b) if ranking == "Highest rarity first" then if a.tier ~= b.tier then return a.tier > b.tier end if a.income ~= b.income then return a.income > b.income end else if a.income ~= b.income then return a.income > b.income end if a.tier ~= b.tier then return a.tier > b.tier end end if a.distance ~= b.distance then return a.distance < b.distance end return a.key < b.key end) if not live() then return nil end local selected = {} for index = 1, math.min(3, #candidates) do selected[index] = candidates[index] end return selected, scanned, #candidates end local function apply(selected) local keep = {} for _, item in ipairs(selected) do if stillValid(item) then keep[item.adornee] = item end end for adornee, record in pairs(records) do if not keep[adornee] then erase(record.group) records[adornee] = nil end end if next(keep) and not folder then folder = Instance.new("Folder") folder.Name = "SAE Local Collectible ESP" folder.Parent = workspace end for rank, item in ipairs(selected) do if keep[item.adornee] then local record = records[item.adornee] if not record then local group = Instance.new("Folder") group.Name = "Collectible" group.Parent = folder local highlight = Instance.new("Highlight") highlight.Name = "Chams" highlight.Parent = group highlight.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop highlight.FillTransparency = 0.45 highlight.OutlineTransparency = 0 local billboard = Instance.new("BillboardGui") billboard.Name = "Rank label" billboard.Parent = group billboard.Size = UDim2.fromOffset(360, 128) billboard.StudsOffsetWorldSpace = Vector3.new(0, 5, 0) billboard.AlwaysOnTop = true billboard.LightInfluence = 0 billboard.MaxDistance = 100000 local label = Instance.new("TextLabel") label.Name = "Details" label.Parent = billboard label.Size = UDim2.fromScale(1, 1) label.BackgroundTransparency = 1 label.RichText = false label.Font = Enum.Font.GothamBold label.TextSize = 13 label.TextWrapped = true label.TextStrokeColor3 = Color3.fromRGB(0, 0, 0) label.TextStrokeTransparency = 0.1 label.TextXAlignment = Enum.TextXAlignment.Center label.TextYAlignment = Enum.TextYAlignment.Top record = { group = group, highlight = highlight, billboard = billboard, label = label } records[item.adornee] = record end record.item, record.rank = item, rank local color = rankColors[rank] record.highlight.Adornee = item.adornee record.highlight.FillColor = color record.highlight.OutlineColor = color record.billboard.Adornee = item.anchor record.label.TextColor3 = color record.label.Text = "#" .. rank .. " " .. item.name .. " [" .. item.rarity .. "]\n" .. item.incomeText .. "/s | " .. item.owner .. "\nMutations: " .. (#item.mutations > 0 and table.concat(item.mutations, ", ") or "None") end end if not next(records) then erase(folder) folder = nil end refreshReport() end function module:Tick(config) if destroyed then return report end if type(config) ~= "table" or config.Top3ESP ~= true then if folder or job or report.enabled then clear("ESP disabled", false) end return report end local part = root() if not part then clear("ESP waiting for character", true) return report end local ranking = config.ESPRanking or "Highest income per second" if ranking ~= "Highest income per second" and ranking ~= "Highest rarity first" then clear("Choose an ESP ranking", true) return report end local catalog = currentCatalog() if not catalog then clear("ESP catalogue unavailable", true) return report end if lastCharacter ~= player.Character then clear("Scanning collectibles", true) elseif lastRanking ~= ranking then generation += 1 if job and job.thread and coroutine.running() ~= job.thread then pcall(task.cancel, job.thread) end job = nil nextScan = 0 report.status = "Scanning collectibles" end lastRanking = ranking lastCharacter = player.Character local removed = false for adornee, record in pairs(records) do if not stillValid(record.item) then erase(record.group) records[adornee] = nil removed = true end end if removed then nextScan = 0 refreshReport() end if job or os.clock() < nextScan then return report end local token, character, position = generation, player.Character, part.Position local scanJob = {} job = scanJob report.enabled = true report.status = "Scanning collectibles" scanJob.thread = task.spawn(function() local ok, selected, scanned, eligible = pcall(scan, config, ranking, catalog, token, character, position) if generation == token and not destroyed and config.Top3ESP == true and player.Character == character and root() then if ok and selected then local applied, failure = pcall(apply, selected) if applied then report.scanned = scanned report.eligible = eligible report.status = #selected > 0 and "Showing top " .. report.displayed .. " collectibles" or "No visible ranked collectibles" else clear("ESP graphics unavailable", true) report.error = tostring(failure) nextScan = os.clock() + 1 end elseif not ok then clear("ESP scan unavailable", true) report.error = tostring(selected) nextScan = os.clock() + 1 end end if job == scanJob then job = nil nextScan = os.clock() + 1 end end) return report end return module end end)() local createBaseArrange = (function() return function(player, Display, navigator, state, Catalog, options) state = state or {} options = options or {} local module, epoch, busy, active, held, destroyed = {}, 0, false, false, nil, false local ranks = { Common = 1, Uncommon = 2, Rare = 3, Epic = 4, Legendary = 5, Mythic = 6, Secret = 7, Kernel = 8 } local function cancelled(abort) local ok, value = pcall(abort or function() return false end) return not ok or value == true end local function ownBase() local bases = workspace:FindFirstChild("Bases") local name = player:GetAttribute("BaseName") local base = bases and type(name) == "string" and bases:FindFirstChild(name) return base and base:GetAttribute("OwnerId") == player.UserId and base or nil end local function root() local char = player.Character local hum = char and char:FindFirstChildOfClass("Humanoid") local part = char and char:FindFirstChild("HumanoidRootPart") return hum and hum.Health > 0 and part and part:IsA("BasePart") and part or nil end local function carry() local model = player.Character and player.Character:FindFirstChild("HOLDING_EXPLOIT_MODEL") return player:GetAttribute("HoldingExploit") == true or model ~= nil, model end local function plain(text) return Display.VisibleText(text) end local function content(slot) local ref = slot:GetAttribute("ExploitModel") local mutations = slot:FindFirstChild("Mutations") local raw = mutations and mutations.Value return ref and type(raw) == "string" and #raw <= 8192 and raw:match("^%s*%[.*%]%s*$") and { ref = ref, mutations = raw, visual = slot:FindFirstChild("EXPLOIT_MODEL") } or nil end local function same(slot, item) local current = content(slot) return current and current.ref == item.ref and current.mutations == item.mutations and current.visual == item.visual end local function fingerprint(model) if not model or not model:IsA("Model") then return nil end local descendants = model:GetDescendants() if #descendants > 500 then return nil end local parts = {} for _, part in ipairs(descendants) do if part:IsA("BasePart") then local ok, value = pcall(function() local mesh = part:FindFirstChildOfClass("SpecialMesh") return part.ClassName .. ":" .. part.Name .. ":" .. tostring(part.Size) .. ":" .. (part:IsA("MeshPart") and tostring(part.MeshId) .. ":" .. tostring(part.TextureID) or "") .. ":" .. (mesh and tostring(mesh.MeshId) .. ":" .. tostring(mesh.TextureId) or "") end) if not ok then return nil end parts[#parts + 1] = value end end if #parts == 0 then return nil end table.sort(parts) return table.concat(parts, "|") end local function prompt(slot, name) local storage = slot:FindFirstChild("PromptsStorage") local value = storage and storage:FindFirstChild(name) return value and value:IsA("ProximityPrompt") and value or nil end local function position(value, slot) local parent = value and value.Parent if parent and parent:IsA("Attachment") then return parent.WorldPosition end if parent and parent:IsA("BasePart") then return parent.Position end local pad = slot:FindFirstChild("PadInner") return pad and pad:IsA("BasePart") and pad.Position or nil end local function insideFloor(base, slot, part) local bounds = base:FindFirstChild("InsideBaseBounds") if not bounds or not bounds:IsA("BasePart") then return false end local p = bounds.CFrame:PointToObjectSpace(part.Position) local size = bounds.Size if math.abs(p.X) > size.X / 2 or math.abs(p.Y) > size.Y / 2 or math.abs(p.Z) > size.Z / 2 then return false end local level = 0 local floors = base:FindFirstChild("BaseFloors") for index, floor in ipairs(floors and floors:GetChildren() or {}) do if index > 12 then return false end local n = tonumber(floor.Name) local origin = floor:FindFirstChild("Origin") if n and origin and origin:IsA("BasePart") and part.Position.Y > origin.Position.Y then level = math.max(level, n) end end return slot:GetAttribute("FloorIndex") == level end local function report(status, attempted, pause) return { success = false, moved = 0, attempted = attempted == true, pauseRequired = pause == true, status = status, pending = state.ArrangePending, carrying = carry(), } end local function release() local value = held held = nil if value then if state.ArrangePending and state.ArrangePending.stage == "acquiring" then state.ArrangePending.releaseAt = os.clock() end pcall(function() value:InputHoldEnd() end) end end function module:Stop() epoch += 1 local pending = state.ArrangePending if pending and pending.stage == "acquiring" and not pending.observedCarry then pending.ambiguous = true end release() if active then navigator:Stop() end end function module:Destroy() if not destroyed then self:Stop() destroyed = true end end local function income(slot) local attachment = slot:FindFirstChild("NametagAttachment") local tag = attachment and attachment:FindFirstChild("Nametag") if not tag then return nil end for index, label in ipairs(tag:GetDescendants()) do if index > 80 then return nil end if label:IsA("TextLabel") then local text = plain(label.Text) local amount = text and text:match("^%s*(.-)%s*/s%s*$") local quote = amount and Display.ParseMoney(amount, false) if quote then return quote.amount end end end end local function nativeName(slot) local grab = prompt(slot, "GrabPrompt") local name = grab and plain(grab.ObjectText) return name and Catalog.Resolve(name), grab end local function plan(abort) local base = ownBase() local part = root() if not base or not part then return report("Waiting for owned base and character") end local model = base:FindFirstChild("BaseModel") local entrance = model and (model:FindFirstChild("CollectZoneTrigger") or model:FindFirstChild("LaserDoor")) if not entrance or not entrance:IsA("BasePart") then return report("Waiting for the native entrance reference") end local folder = base:FindFirstChild("Slots") if not folder then return report("Waiting for native pads") end local places, items, indexes = {}, {}, {} for index, slot in ipairs(folder:GetChildren()) do if index > 100 then return report("Native pad scan limit reached") end if cancelled(abort) or ownBase() ~= base then return report("Cancelled") end if slot:IsA("Model") then local occupied, floor = slot:GetAttribute("Occupied"), slot:GetAttribute("FloorIndex") local pad = slot:FindFirstChild("PadInner") local put = prompt(slot, "PlacePrompt") local slotIndex = tonumber(slot.Name) if type(occupied) ~= "boolean" or type(floor) ~= "number" or floor < 0 or floor % 1 ~= 0 or not slotIndex or slotIndex < 1 or slotIndex > 100 or slotIndex % 1 ~= 0 or indexes[slotIndex] or not pad or not pad:IsA("BasePart") or not put then return report("Waiting for complete native pad metadata") end indexes[slotIndex] = true local entry = { slot = slot, index = slotIndex, floor = floor, distance = (pad.Position - entrance.Position).Magnitude, occupied = occupied, place = put, } places[#places + 1] = entry if occupied then if slot:GetAttribute("Stolen") then return report("Waiting while an own unit is being carried or stolen") end local item, grab = nativeName(slot) local details = content(slot) local rate = income(slot) local rank = item and ((Catalog.RarityRanks and Catalog.RarityRanks[item.rarity]) or ranks[item.rarity]) if not item or not details or not details.visual or not rate or not rank then return report("Waiting for item identity rarity and income metadata") end entry.item = { entry = entry, name = item.name, id = item.id, rarity = item.rarity, rank = rank, income = rate, content = details, grab = grab, } items[#items + 1] = entry.item end end if index % 20 == 0 then task.wait() end end if cancelled(abort) or ownBase() ~= base then return report("Cancelled") end table.sort(places, function(a, b) if a.floor ~= b.floor then return a.floor > b.floor end if a.distance ~= b.distance then return a.distance > b.distance end return a.index < b.index end) local order = {} for index, entry in ipairs(places) do order[entry.slot] = index end table.sort(items, function(a, b) if a.rank ~= b.rank then return a.rank > b.rank end if a.income ~= b.income then return a.income > b.income end return a.entry.index < b.entry.index end) local function equivalent(a, b) return a and b and a.rank == b.rank and a.income == b.income end for index, wanted in ipairs(items) do local target = places[index] if not equivalent(target.item, wanted) then local source, destination, kind if not target.occupied then for _, candidate in ipairs(items) do if equivalent(candidate, wanted) and order[candidate.entry.slot] >= index then source = candidate.entry break end end destination = target kind = "Move a valuable item farther back" else source = target kind = "Open a destination using an empty pad" for n = #places, 1, -1 do if not places[n].occupied then destination = places[n] break end end end if not destination then return report("Base full - arranging requires an empty native pad") end if not source or source == destination then return report("Native layout changed - scan again") end return { success = true, moved = 0, needsMove = true, status = kind, base = base, source = source, destination = destination, item = source.item, sourceIndex = source.index, destinationIndex = destination.index, } end end return { success = true, moved = 0, needsMove = false, status = "Base already ordered" } end function module:Plan(config, abort) if destroyed then return report("Arranger unloaded") end if state.ArrangePending or carry() then return report("Finish the carried item before previewing arrangement") end return plan(abort) end module.Preview = module.Plan local function context(pending) local folder = pending.base and pending.base:FindFirstChild("Slots") return ownBase() == pending.base and pending.base:GetAttribute("OwnerId") == player.UserId and folder and pending.source.Parent == folder and pending.destination.Parent == folder end local function destinationMatches(pending) if pending.destination:GetAttribute("Occupied") ~= true then return false end local current = content(pending.destination) local item = nativeName(pending.destination) return current and item and item.id == pending.itemId and current.mutations == pending.content.mutations and (current.ref == pending.content.ref or fingerprint(current.visual) == pending.signature) end local function receipt(pending) return pending.observedCarry == true and pending.carryModel ~= nil and not carry() and context(pending) and pending.source:GetAttribute("Occupied") == false and destinationMatches(pending) end local function sourceTransition(pending) return pending.source:GetAttribute("Occupied") == false or (pending.source:GetAttribute("Stolen") == true and same(pending.source, pending.content)) end local function success(pending) state.ArrangePending = nil return { success = true, moved = 1, attempted = true, pauseRequired = false, status = "Content-matched own-pad move confirmed", sourceIndex = pending.sourceIndex, destinationIndex = pending.destinationIndex, pending = nil, carrying = false, } end function module:Run(config, abort) if busy then return report("An arrangement move is already running") end if destroyed then return report("Arranger unloaded") end local pending = state.ArrangePending if pending and receipt(pending) then return success(pending) end if pending and not carry() and not context(pending) and os.clock() - (pending.releaseAt or pending.at) >= 4 then state.ArrangePending = nil return report("Base or pad changed without an arrangement receipt", true) end if pending and pending.stage == "review" then if not carry() then state.ArrangePending = nil return report("Manual carry ended; no arrangement receipt counted") end return report(pending.reviewReason or "Review the carried item manually", true, true) end if pending then if carry() then pending.missingSince = nil else pending.missingSince = pending.missingSince or (pending.stage == "acquiring" and (pending.releaseAt or pending.at)) or os.clock() if os.clock() - pending.missingSince >= 4 then state.ArrangePending = nil return report("Acknowledgement grace ended without the selected destination receipt", true) end end end if type(config) ~= "table" or config.AutoArrange ~= true then return report("Auto arrange is off; any carried item is retained") end if pending and pending.retryAt and os.clock() < pending.retryAt then local hasCarry, model = carry() if hasCarry and ( not context(pending) or player.Character ~= pending.character or model ~= pending.carryModel or pending.destination:GetAttribute("Occupied") ~= false or not sourceTransition(pending) ) then pending.stage = "review" pending.reviewReason = "Tracked content owner or destination changed; review manually" return report(pending.reviewReason, true, true) end return report("Waiting to retry native placement; tracked item retained") end local token = epoch local began = os.clock() active = true busy = true local function stopped() return token ~= epoch or destroyed or cancelled(abort) or config.AutoArrange ~= true or os.clock() - began > 110 end local function waitFor(predicate, seconds) local deadline = os.clock() + seconds repeat if stopped() then return nil, "Cancelled" end local value = predicate() if value then return value end task.wait(0.05) until os.clock() >= deadline return nil, "Timed out" end local function review(reason) if pending and carry() then pending.stage = "review" pending.reviewReason = reason end return report(reason, true, true) end local function retain(reason) if pending then pending.retryAt = os.clock() + 5 end return report(reason, true, false) end local function hold(value, slot, seconds, check) held = value local ok = pcall(function() value:InputHoldBegin() local deadline = os.clock() + seconds + 0.15 while os.clock() < deadline do if stopped() or (check and check()) then break end task.wait(0.03) end end) release() return ok end local result local ok, err = xpcall(function() if stopped() then result = report("Cancelled") return end if not pending then if carry() then result = report("Manual carry detected; arranger will not take over") return end if state.Pending or state.StealPending then result = report("Waiting for another acquisition to finish") return end local proposed = plan(stopped) if not proposed.success or not proposed.needsMove then result = proposed return end local source, destination = proposed.source.slot, proposed.destination.slot local base = proposed.base local character = player.Character local nativeSlots = base:FindFirstChild("Slots") local function validSource() return ownBase() == base and player.Character == character and root() and not carry() and not state.Pending and not state.StealPending and source.Parent == nativeSlots and destination.Parent == nativeSlots and source:GetAttribute("Occupied") == true and not source:GetAttribute("Stolen") and destination:GetAttribute("Occupied") == false and same(source, proposed.item.content) end local function approachAbort() return stopped() or not validSource() end local grab = proposed.item.grab local reached, why = navigator:GoTo(function() return not approachAbort() and position(grab, source) or nil end, 3, 35, approachAbort) if not reached or approachAbort() then result = report("Arrangement approach: " .. tostring(why), true) return end local ready = waitFor(function() if approachAbort() then return "changed" end local part = root() local point = position(grab, source) return grab.Enabled and grab.MaxActivationDistance > 0 and part and point and insideFloor(base, source, part) and (part.Position - point).Magnitude <= math.max(0, grab.MaxActivationDistance - 1) end, 2) if ready ~= true or approachAbort() then result = report("Native own grab prompt is not active on this floor", true) return end local signature = fingerprint(proposed.item.content.visual) local duration = grab.HoldDuration if not signature or type(duration) ~= "number" or duration ~= duration or duration < 0 or duration > 5 then result = report("Native grab hold or content fingerprint is unavailable", true) return end pending = { stage = "acquiring", base = base, source = source, destination = destination, sourceIndex = proposed.sourceIndex, destinationIndex = proposed.destinationIndex, content = proposed.item.content, itemId = proposed.item.id, itemName = proposed.item.name, signature = signature, character = character, at = os.clock(), } state.ArrangePending = pending if type(options.BeforeAcquire) == "function" then local destinationPoint = position(proposed.destination.place, destination) local sourcePoint = position(grab, source) local released, answer = pcall(options.BeforeAcquire, approachAbort, { HoldDuration = duration, PlaceHoldDuration = proposed.destination.place.HoldDuration, ReturnDistance = sourcePoint and destinationPoint and (sourcePoint - destinationPoint).Magnitude or math.huge, }) if not released or answer == false or approachAbort() then state.ArrangePending = nil pending = nil result = report("Travel tool release interrupted before grabbing", true) return end end local heldOK = hold(grab, source, duration, function() local hasCarry, model = carry() local sourceClear = source:GetAttribute("Occupied") == false local sourceReserved = source:GetAttribute("Stolen") == true and same(source, pending.content) if hasCarry and model and player:GetAttribute("HoldingExploit") == true and context(pending) and (sourceClear or sourceReserved) and fingerprint(model) == pending.signature then pending.carryModel = model pending.observedCarry = true pending.stage = "carrying" end if hasCarry then return true end local part = root() local point = position(grab, source) return not context(pending) or player.Character ~= character or not part or not point or not grab.Enabled or grab.MaxActivationDistance <= 0 or not insideFloor(base, source, part) or (part.Position - point).Magnitude > grab.MaxActivationDistance - 0.5 or (source:GetAttribute("Occupied") == true and not same(source, pending.content)) end) if not heldOK then result = report("Native grab could not be held", true) return end if stopped() then pending.ambiguous = true result = report("Stopped; acquisition intent retained for acknowledgement", true) return end end if not context(pending) then result = review("Owned base or pad changed; review the tracked item") return end if player.Character ~= pending.character then if not carry() then state.ArrangePending = nil result = report("Character changed without an arrangement receipt", true) else result = review("Character changed with an extant carry; review manually") end return end local acknowledged, why = waitFor(function() if receipt(pending) then return "delivered" end if not context(pending) then return "changed" end if player.Character ~= pending.character then return "character-changed" end local hasCarry, model = carry() if model and ( fingerprint(model) ~= pending.signature or (pending.carryModel and model ~= pending.carryModel) ) then return "mismatch" end if hasCarry and pending.ambiguous and not pending.observedCarry then return "ambiguous" end local sourceClear = pending.source:GetAttribute("Occupied") == false local sourceReserved = pending.source:GetAttribute("Stolen") == true and same(pending.source, pending.content) if hasCarry and model and player:GetAttribute("HoldingExploit") == true and (sourceClear or sourceReserved) then pending.carryModel = model pending.observedCarry = true pending.stage = "carrying" return "carrying" end if not hasCarry and os.clock() - (pending.releaseAt or pending.at) >= 3.9 then return "ended" end end, 4) if acknowledged == "delivered" then result = success(pending) return end if acknowledged == "ended" then state.ArrangePending = nil result = report("Carry ended without the selected destination receipt", true) return end if acknowledged ~= "carrying" then result = review("Tracked own acquisition is unconfirmed: " .. tostring(acknowledged or why)) return end pending.retryAt = nil if pending.destination:GetAttribute("Occupied") ~= false then result = review("Selected destination is no longer empty; held item retained") return end local put = prompt(pending.destination, "PlacePrompt") if not put then result = retain("Native destination prompt unavailable; held item retained") return end local function placementAbort() local hasCarry, model = carry() return stopped() or not context(pending) or player.Character ~= pending.character or not root() or not sourceTransition(pending) or pending.destination:GetAttribute("Occupied") ~= false or not hasCarry or model ~= pending.carryModel end local function identityChanged() local hasCarry, model = carry() return not context(pending) or player.Character ~= pending.character or (hasCarry and model ~= pending.carryModel) or not sourceTransition(pending) or pending.destination:GetAttribute("Occupied") ~= false end local reached, route = navigator:GoTo(function() return not placementAbort() and position(put, pending.destination) or nil end, 1, 35, placementAbort) if stopped() then result = report("Stopped; tracked own carry retained", true) return end if receipt(pending) then result = success(pending) return end if not reached or placementAbort() then if identityChanged() then result = review("Owned base content or destination changed; review the tracked item") else result = retain("Arrangement placement route: " .. tostring(route)) end return end local ready = waitFor(function() if placementAbort() then return "changed" end local part = root() local point = position(put, pending.destination) return put.Enabled and put.MaxActivationDistance > 0 and part and point and insideFloor(pending.base, pending.destination, part) and (part.Position - point).Magnitude <= math.max(0, put.MaxActivationDistance - 1) end, 2) if ready ~= true or placementAbort() then result = identityChanged() and review("Owned base content or destination changed; review the tracked item") or retain("Native place prompt is not active on this floor") return end local duration = put.HoldDuration if type(duration) ~= "number" or duration ~= duration or duration < 0 or duration > 5 then result = retain("Unsupported native place hold") return end pending.stage = "placing" hold(put, pending.destination, duration, function() if receipt(pending) then return true end local part = root() local point = position(put, pending.destination) return placementAbort() or not put.Enabled or put.MaxActivationDistance <= 0 or not part or not point or not insideFloor(pending.base, pending.destination, part) or (part.Position - point).Magnitude > put.MaxActivationDistance - 0.5 end) local delivered, detail = waitFor(function() return receipt(pending) end, 4) if delivered then result = success(pending) elseif stopped() then result = report("Stopped; placement intent retained for acknowledgement", true) elseif identityChanged() then result = review("Tracked content owner or destination changed; review manually") else result = retain("Native placement was not confirmed: " .. tostring(detail)) end end, debug.traceback) release() active = false busy = false if not ok then return report("Arrangement stopped after an error: " .. tostring(err), true, true) end return result or report("No arrangement action") end return module end end)() local createLadderConnector = (function() local function createLadderConnector(player, config) config = config or {} local self = { Active = false, LastReason = "idle", Phase = "Idle", _epoch = 0, _busy = false, _destroyed = false } local moveBinding, jumpBinding, moveAction, jumpAction, context local function finite(n) return type(n) == "number" and n == n and n > -math.huge and n < math.huge end local function valid(v) return typeof(v) == "Vector3" and finite(v.X) and finite(v.Y) and finite(v.Z) end local function flat(v) return Vector3.new(v.X, 0, v.Z) end local function release() if moveBinding and moveBinding.Parent then pcall(function() moveBinding:Fire(Vector2.zero) end) end if jumpBinding and jumpBinding.Parent then pcall(function() jumpBinding:Fire(false) end) end end local function clearBindings() release() if moveBinding then moveBinding:Destroy() end if jumpBinding then jumpBinding:Destroy() end moveBinding, jumpBinding, moveAction, jumpAction, context = nil, nil, nil, nil, nil end local function bind() local inputs = player:FindFirstChild("InputContexts") context = inputs and inputs:FindFirstChild("CharacterContext") moveAction = context and context:FindFirstChild("MoveAction") jumpAction = context and context:FindFirstChild("JumpAction") if not ( context and context:IsA("InputContext") and context.Enabled and moveAction and moveAction:IsA("InputAction") and moveAction.Enabled and jumpAction and jumpAction:IsA("InputAction") and jumpAction.Enabled and moveAction.Type == Enum.InputActionType.Direction2D and jumpAction.Type == Enum.InputActionType.Bool ) then return false, "controls-unavailable" end moveBinding = Instance.new("InputBinding") moveBinding.Name = "SAE_Ladder_Move" moveBinding.Type = Enum.InputBindingType.Scriptable moveBinding.Parent = moveAction jumpBinding = Instance.new("InputBinding") jumpBinding.Name = "SAE_Ladder_Jump" jumpBinding.Type = Enum.InputBindingType.Scriptable jumpBinding.Parent = jumpAction return true end function self:Stop() self._epoch += 1 self.Active = false self.LastReason = "stopped" self.Phase = "Idle" release() end function self:Destroy() if self._destroyed then return end self:Stop() self._destroyed = true clearBindings() self.LastReason = "destroyed" end function self:Traverse(transition, abort, maxSeconds) if self._destroyed then return false, "destroyed" end if self._busy then return false, "busy" end if type(transition) ~= "table" or type(transition.Allowed) ~= "function" then return false, "invalid-transition" end local ladder, lower, upper = transition.Ladder, transition.LowerOrigin, transition.UpperOrigin local up = transition.Direction == "Up" if not up and transition.Direction ~= "Down" then return false, "invalid-direction" end if not up and config.AllowDescent ~= true then return false, "descent-unverified" end if not ( ladder and ladder:IsA("Model") and ladder.Name == "TemplateLadder" and lower and lower:IsA("BasePart") and lower.Name == "LadderOrigin" and upper and upper:IsA("BasePart") and upper.Name == "LadderOrigin" and valid(lower.Position) and valid(upper.Position) ) then return false, "invalid-transition" end local lowerPosition, upperPosition = lower.Position, upper.Position local height = upperPosition.Y - lowerPosition.Y local normal = flat(lower.CFrame.LookVector) local upperNormal = flat(upper.CFrame.LookVector) if height < 12 or height > 24 or flat(upperPosition - lowerPosition).Magnitude > 2 or not valid(normal) or not valid(upperNormal) or normal.Magnitude < 0.9 or upperNormal.Magnitude < 0.9 or normal.Unit:Dot(upperNormal.Unit) < 0.98 then return false, "invalid-ladder-geometry" end normal = normal.Unit local character = player.Character local humanoid = character and character:FindFirstChildOfClass("Humanoid") local root = character and character:FindFirstChild("HumanoidRootPart") if not root or not humanoid or humanoid.Health <= 0 or not humanoid:GetStateEnabled(Enum.HumanoidStateType.Climbing) then return false, "character-unavailable" end local footOffset = humanoid.HipHeight + root.Size.Y * 0.5 - 0.25 if not finite(footOffset) or footOffset < 1 or footOffset > 6 then return false, "invalid-character-size" end local source = up and lowerPosition or upperPosition local destination = up and upperPosition or lowerPosition local approach = source + normal * 3 + Vector3.new(0, footOffset, 0) local landing = destination + normal * 6 + Vector3.new(0, footOffset, 0) local targetY = landing.Y local duration = tonumber(maxSeconds) if not finite(duration) then duration = 12 end local interval = tonumber(config.TickInterval) if not finite(interval) then interval = 0.05 end local deadline = os.clock() + math.clamp(duration, 0.1, 60) local tickInterval = math.clamp(interval, 0.025, 0.1) self._busy = true self._epoch += 1 local epoch = self._epoch self.Active = true local function check() if self._destroyed or epoch ~= self._epoch or not self.Active then return "stopped" end if type(config.OnUpdate) == "function" then local ok = pcall(config.OnUpdate) if not ok then return "update-error" end if self._destroyed or epoch ~= self._epoch or not self.Active then return "stopped" end end if os.clock() >= deadline then return "timeout" end if player.Character ~= character or root.Parent ~= character or humanoid.Health <= 0 or not character:IsDescendantOf(workspace) then return "character-changed" end if not ladder:IsDescendantOf(workspace) or not lower:IsDescendantOf(workspace) or not upper:IsDescendantOf(workspace) or (lower.Position - lowerPosition).Magnitude > 0.1 or (upper.Position - upperPosition).Magnitude > 0.1 or flat(lower.CFrame.LookVector):Dot(normal) < 0.98 or flat(upper.CFrame.LookVector):Dot(normal) < 0.98 then return "ladder-changed" end local allowedOK, allowed = pcall(transition.Allowed) if not allowedOK or allowed ~= true then return "transition-not-allowed" end if abort then local ok, result = pcall(abort) if not ok then return "abort-error" elseif result then return "aborted" end end return nil end local function controlsValid() return context and context.Parent and context.Enabled and moveAction.Parent == context and moveAction.Enabled and jumpAction.Parent == context and jumpAction.Enabled and moveBinding.Parent == moveAction and jumpBinding.Parent == jumpAction end local function steer(direction, jump, strength) if not controlsValid() then return false, "controls-changed" end local camera = workspace.CurrentCamera local forward = flat(camera and camera.CFrame.LookVector or root.CFrame.LookVector) if forward.Magnitude < 0.001 then forward = Vector3.zAxis end forward = forward.Unit direction = flat(direction) local input = Vector2.zero if direction.Magnitude > 0.01 then direction = direction.Unit input = Vector2.new(direction:Dot(forward:Cross(Vector3.yAxis)), direction:Dot(forward)) if not finite(input.X) or not finite(input.Y) then return false, "invalid-input" end if input.Magnitude > 1 then input = input.Unit end if strength ~= nil then input *= math.clamp(strength, 0, 1) end end moveBinding:Fire(input) jumpBinding:Fire(jump == true) return true end local function grounded() return humanoid.FloorMaterial ~= Enum.Material.Air and humanoid:GetState() ~= Enum.HumanoidStateType.Climbing end local function land() self.Phase = "Landing" local landingStart = os.clock() local landingDeadline = math.min(deadline, landingStart + 3) while os.clock() < landingDeadline do local reason = check() if reason then return false, reason end local delta = landing - root.Position if grounded() and math.abs(delta.Y) <= 2 and flat(delta).Magnitude <= 1.5 then return true, "landed" end if root.Position.Y < targetY - 4 or root.Position.Y > targetY + 12 then return false, "landing-wrong-floor" end local jump = os.clock() - landingStart < 0.15 local moved, why = steer(delta, jump) if not moved then return false, why end task.wait(tickInterval) end return false, "landing-timeout" end local function descendShaft() local base = transition.Base if not base or base:GetAttribute("OwnerId") ~= player.UserId or not ladder:IsDescendantOf(base) or not lower:IsDescendantOf(base) or not upper:IsDescendantOf(base) then return false, "shaft-base-unavailable" end local right = normal:Cross(Vector3.yAxis) local shaft = upperPosition + normal * 2.5 local params = RaycastParams.new() params.FilterType = Enum.RaycastFilterType.Include params.FilterDescendantsInstances = { base } params.RespectCanCollide = true local function geometry() if base:GetAttribute("OwnerId") ~= player.UserId then return "transition-not-allowed" end for _, side in ipairs({ -0.6, 0, 0.6 }) do local point = shaft + right * side + Vector3.new(0, footOffset + 0.5, 0) if workspace:Raycast(point, Vector3.new(0, -4.5, 0), params) then return "shaft-obstructed" end point = lowerPosition + normal * 6 + right * side + Vector3.new(0, 2, 0) local hit = workspace:Raycast(point, Vector3.new(0, -4, 0), params) if not hit or not hit.Instance:IsDescendantOf(base) or not hit.Instance.CanCollide or hit.Normal.Y < 0.8 or math.abs(hit.Position.Y - lowerPosition.Y) > 1.5 then return "shaft-landing-unavailable" end end return nil end local reason = geometry() if reason then return false, reason end if math.abs((root.Position - upperPosition):Dot(right)) > 3 then return false, "shaft-entry-misaligned" end self.Phase = "Shaft entry" local started = os.clock() local fallDeadline = math.min(deadline, started + 5) local nextGeometry = started + 0.1 local falling = false while os.clock() < fallDeadline do reason = check() if reason then return false, reason end if os.clock() >= nextGeometry then reason = geometry() nextGeometry = os.clock() + 0.1 if reason then return false, reason end end if root.Position.Y < targetY - 3 then return false, "shaft-fell-below-landing" end if root.Position.Y > upperPosition.Y + footOffset + 4 or flat(root.Position - upperPosition).Magnitude > 9 then return false, "shaft-entry-diverged" end if root.Position.Y < upperPosition.Y + footOffset - 2 then falling = true self.Phase = "Shaft landing" end local delta = landing - root.Position if falling and grounded() then if math.abs(delta.Y) <= 2 and flat(delta).Magnitude <= 1.5 then return true, "landed" end if math.abs(delta.Y) > 2 then return false, "shaft-landed-wrong-floor" end end local direction, strength if falling then direction = delta strength = 1 else local error = (shaft - root.Position):Dot(normal) direction = math.abs(error) <= 0.35 and Vector3.zero or shaft - root.Position strength = math.clamp(math.abs(error) / 3, 0.2, 0.5) end local moved, why = steer(direction, false, strength) if not moved then return false, why end task.wait(tickInterval) end return false, "shaft-descent-timeout" end local function run() local reason = check() if reason then return false, reason end if transition.LandingOnly == true then if not grounded() or math.abs(root.Position.Y - targetY) > 2 or flat(root.Position - destination).Magnitude > 7 then return false, "invalid-landing-recovery" end local bound, why = bind() if not bound then return false, why end return land() end local alreadyClimbing = humanoid:GetState() == Enum.HumanoidStateType.Climbing if flat(root.Position - source).Magnitude > 7 then return false, "approach-too-far" end if alreadyClimbing then if root.Position.Y < lowerPosition.Y + footOffset - 3 or root.Position.Y > upperPosition.Y + footOffset + 5 then return false, "recovery-wrong-floor" end elseif math.abs(root.Position.Y - approach.Y) > 2.5 or not grounded() then return false, "approach-wrong-floor" end local bound, bindReason = bind() if not bound then return false, bindReason end if not up and not alreadyClimbing and config.AllowShaftDescent == true then return descendShaft() end self.Phase = "Engage" local engageDeadline = math.min(deadline, os.clock() + 2) while humanoid:GetState() ~= Enum.HumanoidStateType.Climbing do reason = check() if reason then return false, reason end if os.clock() >= engageDeadline then return false, "climb-not-engaged" end if flat(root.Position - source).Magnitude > 7 or math.abs(root.Position.Y - approach.Y) > 4 then return false, "ladder-entry-diverged" end local moved, why = steer(normal * -1, false) if not moved then return false, why end task.wait(tickInterval) end self.Phase = up and "Ascending" or "Descending" local initialY, bestY, progressAt = root.Position.Y, root.Position.Y, os.clock() local sawProgress = alreadyClimbing and (up and initialY >= targetY + 1.6 or not up and initialY <= targetY + 0.4) local climbDeadline = math.min(deadline, os.clock() + 6) while true do reason = check() if reason then return false, reason end local y = root.Position.Y local progress = up and y - bestY or bestY - y if progress > 0.2 then bestY = y progressAt = os.clock() sawProgress = sawProgress or math.abs(y - initialY) > 0.5 end if (up and y < initialY - 1.5) or (not up and y > initialY + 1.5) then return false, "climb-wrong-direction" end if flat(root.Position - source).Magnitude > 7 then return false, "climb-left-ladder" end local reached = up and y >= targetY + 1.6 or not up and y <= targetY + 0.4 if reached and sawProgress then break end if grounded() then if sawProgress and math.abs(y - targetY) <= 2 then break end return false, "climb-ended-early" end if os.clock() - progressAt > 1.25 then return false, "climb-stuck" end if os.clock() >= climbDeadline then return false, "climb-timeout" end local moved, why = steer(normal * (up and -1 or 1), false) if not moved then return false, why end task.wait(tickInterval) end if up and config.AllowAscentDismount ~= true then return false, "ascent-dismount-unverified" end return land() end local ok, success, reason = xpcall(run, debug.traceback) clearBindings() self._busy = false if epoch == self._epoch then self.Active = false self.Phase = "Idle" self.LastReason = ok and reason or "ladder-error" end if not ok then warn("[SAE Ladder] " .. tostring(success)) return false, "ladder-error" end return success, reason end return self end return createLadderConnector end)() local createLadderRouter = (function() local function createLadderRouter(player, navigator, config, createLadderConnector) config = config or {} assert( type(config.GetBase) == "function" and type(createLadderConnector) == "function", "ladder router dependencies" ) assert(not navigator.LadderRouter, "ladder router already installed") local rawGoTo, rawStop, rawDestroy = navigator.GoTo, navigator.Stop, navigator.Destroy local connector = createLadderConnector(player, { OnUpdate = config.OnUpdate, AllowAscentDismount = true, AllowDescent = config.AllowDescent ~= false, AllowShaftDescent = config.AllowShaftDescent == true, }) local router = { Active = false, LastReason = "idle", Phase = "Idle", Connector = connector, _epoch = 0, _busy = false, _destroyed = false, } local wrappedGoTo, wrappedStop, wrappedDestroy local function finite(n) return type(n) == "number" and n == n and n > -math.huge and n < math.huge end local function valid(v) return typeof(v) == "Vector3" and finite(v.X) and finite(v.Y) and finite(v.Z) end local function flat(v) return Vector3.new(v.X, 0, v.Z) end local function baseInfo() local ok, base = pcall(config.GetBase) if not ok or not base or base:GetAttribute("OwnerId") ~= player.UserId or not base:IsDescendantOf(workspace) then return nil end local bounds = base:FindFirstChild("InsideBaseBounds") local ground = base:FindFirstChild("BaseModel") if not bounds or not bounds:IsA("BasePart") or not ground then return nil end local models = { [0] = ground } local floors = base:FindFirstChild("BaseFloors") if floors then for _, model in ipairs(floors:GetChildren()) do local index = tonumber(model.Name) if index and index % 1 == 0 and index >= 1 and index <= 10 then models[index] = model end end end local levels = {} for index, model in pairs(models) do local origin = model:FindFirstChild("LadderOrigin") if origin and origin:IsA("BasePart") and valid(origin.Position) then levels[index] = { model = model, origin = origin } end end if not levels[0] then return nil end return base, bounds, levels end local function insideXZ(bounds, point) local localPoint = bounds.CFrame:PointToObjectSpace(point) return math.abs(localPoint.X) <= bounds.Size.X * 0.5 + 0.5 and math.abs(localPoint.Z) <= bounds.Size.Z * 0.5 + 0.5 end local function floorAt(bounds, levels, point) if not insideXZ(bounds, point) then return 0 end local best, distance = 0, math.huge for index, level in pairs(levels) do local delta = math.abs(point.Y - level.origin.Position.Y) if delta < distance then best, distance = index, delta end end return best end local function transition(base, levels, index, direction) local lower, upper = levels[index], levels[index + 1] local ladder = lower and lower.model:FindFirstChild("TemplateLadder") if not lower or not upper or not ladder or not ladder:IsA("Model") then return nil end return { Base = base, Ladder = ladder, LowerOrigin = lower.origin, UpperOrigin = upper.origin, Direction = direction, Allowed = function() local ok, current = pcall(config.GetBase) return ok and current == base and base:IsDescendantOf(workspace) and base:GetAttribute("OwnerId") == player.UserId and ladder.Parent == lower.model and lower.origin.Parent == lower.model and upper.origin.Parent == upper.model end, } end local function edgeRecovery(base, levels, index, root, humanoid) local level = levels[index] if not level or humanoid.FloorMaterial == Enum.Material.Air then return nil end local delta = root.Position - level.origin.Position local offset = humanoid.HipHeight + root.Size.Y * 0.5 - 0.25 local normal = flat(level.origin.CFrame.LookVector) if normal.Magnitude < 0.9 or math.abs(delta.Y - offset) > 2 or flat(delta).Magnitude > 4 or delta:Dot(normal.Unit) > 2 then return nil end local segment = transition(base, levels, index > 0 and index - 1 or 0, index > 0 and "Up" or "Down") if segment then segment.LandingOnly = true end return segment end function router:Stop() self._epoch += 1 self.Active = false self.LastReason = "stopped" self.Phase = "Idle" connector:Stop() rawStop(navigator) end function router:Destroy() if self._destroyed then return end self:Stop() self._destroyed = true connector:Destroy() rawDestroy(navigator) if navigator.GoTo == wrappedGoTo then navigator.GoTo = rawGoTo end if navigator.Stop == wrappedStop then navigator.Stop = rawStop end if navigator.Destroy == wrappedDestroy then navigator.Destroy = rawDestroy end navigator.LadderRouter = nil self.LastReason = "destroyed" end function router:GoTo(provider, radius, maxSeconds, abort) if self._destroyed then return false, "destroyed" end if self._busy then return false, "busy" end if type(provider) ~= "function" then return false, "invalid-provider" end local duration = tonumber(maxSeconds) if not finite(duration) then duration = 35 end local deadline = os.clock() + math.clamp(duration, 1, 180) local character = player.Character local humanoid = character and character:FindFirstChildOfClass("Humanoid") local root = character and character:FindFirstChild("HumanoidRootPart") if not root or not humanoid or humanoid.Health <= 0 then return false, "character-unavailable" end self._busy = true self._epoch += 1 local epoch = self._epoch self.Active = true local function check() if self._destroyed or self._epoch ~= epoch or not self.Active then return "stopped" end if os.clock() >= deadline then return "timeout" end if player.Character ~= character or root.Parent ~= character or humanoid.Health <= 0 or not character:IsDescendantOf(workspace) then return "character-changed" end if abort then local ok, result = pcall(abort) if not ok then return "abort-error" elseif result then return "aborted" end end return nil end local function target() local ok, point = pcall(provider) return ok and valid(point) and point or nil end local function abortLeg() return check() ~= nil or target() == nil end local function travel() self.Phase = "Travel" local ok, why = rawGoTo(navigator, provider, radius, math.max(0.1, deadline - os.clock()), abortLeg) local reason = check() if reason then return false, reason end if not target() then return false, "target-unavailable" end return ok, why end local function run() for _ = 1, 12 do local reason = check() if reason then return false, reason end local destination = target() if not destination then return false, "target-unavailable" end local base, bounds, levels = baseInfo() local climbing = humanoid:GetState() == Enum.HumanoidStateType.Climbing if not base then if climbing then return false, "climbing-base-unavailable" end return travel() end local desired = floorAt(bounds, levels, destination) local current = floorAt(bounds, levels, root.Position) local segment if climbing then local offset = humanoid.HipHeight + root.Size.Y * 0.5 - 0.25 local bestDistance = math.huge for index, lower in pairs(levels) do local upper = levels[index + 1] if upper and root.Position.Y >= lower.origin.Position.Y + offset - 3 and root.Position.Y <= upper.origin.Position.Y + offset + 5 then local distance = flat(root.Position - lower.origin.Position).Magnitude if distance <= 7 and distance < bestDistance then segment = transition(base, levels, index, desired > index and "Up" or "Down") bestDistance = distance end end end if not segment then return false, "climbing-ladder-unavailable" end else segment = edgeRecovery(base, levels, current, root, humanoid) if not segment then if current == desired then return travel() end local up = desired > current segment = transition(base, levels, up and current or current - 1, up and "Up" or "Down") if not segment then return false, "ladder-unavailable" end end end if not climbing and not segment.LandingOnly then self.Phase = "Approach" local origin = segment.Direction == "Up" and segment.LowerOrigin or segment.UpperOrigin local point = origin.Position + flat(origin.CFrame.LookVector).Unit * 3 local ok, why = rawGoTo(navigator, function() return segment.Allowed() and point or nil end, 3.2, math.min(20, deadline - os.clock()), abortLeg) reason = check() if reason then return false, reason end if not target() then return false, "target-unavailable" end if not ok then return false, "ladder-approach-" .. tostring(why) end end self.Phase = "Ladder" local ok, why = connector:Traverse(segment, abortLeg, math.min(12, deadline - os.clock())) reason = check() if reason then return false, reason end if not target() then return false, "target-unavailable" end if not ok then return false, why end end return false, "ladder-route-limit" end local ok, success, reason = xpcall(run, debug.traceback) self._busy = false if epoch == self._epoch then self.Active = false self.Phase = "Idle" self.LastReason = ok and reason or "ladder-route-error" end if not ok then connector:Stop() rawStop(navigator) warn("[SAE Ladder Router] " .. tostring(success)) return false, "ladder-route-error" end return success, reason end wrappedGoTo = function(_, ...) return router:GoTo(...) end wrappedStop = function(_) return router:Stop() end wrappedDestroy = function(_) return router:Destroy() end navigator.GoTo, navigator.Stop, navigator.Destroy = wrappedGoTo, wrappedStop, wrappedDestroy navigator.LadderRouter = router return router end return createLadderRouter end)() local Players = game:GetService("Players") local RunService = game:GetService("RunService") local player = Players.LocalPlayer assert(RunService:IsClient() and player, "Run this in the Roblox client") if game.GameId ~= 10649680176 or game.PlaceId ~= 121035400884186 then return createGameGate(player, 10649680176, 121035400884186) end local catalogProvider = createCatalogProvider(Catalog) Catalog = catalogProvider.Catalog TargetPolicy.UpdateCatalog(Catalog) VaultPolicy.UpdateCatalog(Catalog) local Config = { StartOnLoad = false, ProgressionFarm = false, Top3ESP = false, ESPRanking = "Highest income per second", AutoTutorial = false, AutoClaimQuests = false, AutoRebirth = false, AutoShopUpgrades = false, AutoBits = false, AutoSellBits = false, AutoVault = false, AutoSteal = false, StealWhitelist = {}, StealWhitelistInvalid = false, StealCheckInterval = 15, FarmItemNames = {}, FarmTypes = {}, FarmRarities = {}, FarmMutations = {}, FarmMutationMode = "Any selected", FarmFiltersInvalid = false, StealItemNames = {}, StealTypes = {}, StealRarities = {}, StealMutations = {}, StealMutationMode = "Any selected", StealFiltersInvalid = false, VaultRarities = { "Legendary", "Mythic", "Secret", "Kernel" }, VaultMutations = {}, VaultMutationMode = "Any selected", VaultMaxSerial = 0, VaultMatchMode = "All enabled filters", VaultItemNames = {}, VaultCheckInterval = 20, VaultMutationOptions = { "Hyperion Bypass", "Hyperion Emulator", "Client Modification Bypass", "Deleter2 Bypass", "Undetected", "Key System", "Cracked", "Open-Source", "Rust Rewrite", "Detected", "Overheated", "Frozen", "Overclocked", "Bitdancer", "Crashes on Inject", "Buggy", "Skidded & Pasted", "Memory Leak", }, AutoBuy = false, AutoCollect = false, AutoLock = false, AutoArrange = false, ArrangeCheckInterval = 30, CashReserve = 0, MaxPurchasePrice = math.huge, MinIncome = 0, MaxOwnedUnits = 10, PurchaseScanInterval = 4, ArrivalTimeout = 150, QuestClaimInterval = 10, ProgressionInterval = 20, BitsCollectInterval = 12, MinBitsToSell = 5, } local rarityRank = { common = 1, uncommon = 2, rare = 3, epic = 4, legendary = 5, mythic = 6, secret = 7, kernel = 8 } local env = (type(getgenv) == "function" and getgenv()) or _G local oldNotice = env.StealExploitFarmNotice if type(oldNotice) == "table" and oldNotice.Kind == "StealExploitFarmNotice" and type(oldNotice.Destroy) == "function" then pcall(oldNotice.Destroy, oldNotice) end local previous = env.StealExploitFarm local priorState = type(previous) == "table" and type(previous.State) == "table" and previous.State or {} local previousPending = priorState.Pending local function priorNumber(key) local value = priorState[key] return type(value) == "number" and value == value and value >= 0 and value < math.huge and value or 0 end if type(previous) == "table" and type(previous.Destroy) == "function" then previous:Destroy() end local State = { Alive = true, Running = false, StartupReady = false, Busy = false, WorkerSteps = 0, Generation = 0, Status = "Paused - press Start", StartedAt = priorState.StartedAt or os.clock(), Purchases = priorNumber("Purchases"), BuyAttempts = priorNumber("BuyAttempts"), Collected = priorNumber("Collected"), Collections = priorNumber("Collections"), LostDeliveries = priorNumber("LostDeliveries"), LastError = nil, Pending = previousPending, HeldPrompt = nil, TutorialStep = player:GetAttribute("TutorialStep"), QuestClaims = priorNumber("QuestClaims"), QuestClaimStatus = "Waiting", QuestClaimsByGroup = table.clone(priorState.QuestClaimsByGroup or { Daily = 0, Weekly = 0, Milestones = 0 }), ProgressionStatus = "Waiting", RebirthsCompleted = priorNumber("RebirthsCompleted"), UpgradesBought = priorNumber("UpgradesBought"), RebirthNeeds = {}, BitsCollected = priorNumber("BitsCollected"), BitsSold = priorNumber("BitsSold"), BitsStatus = "Waiting", VaultStored = priorNumber("VaultStored"), VaultStatus = "Waiting for a vault check", VaultPreviewSummary = "No preview yet", VaultUsed = nil, VaultCapacity = nil, VaultRebirthBlocked = true, VaultPreviewRequested = false, VaultCheckRequested = true, VaultSettingsRevision = 0, StealsCompleted = priorNumber("StealsCompleted"), StealStatus = "Waiting for a steal check", StealPending = priorState.StealPending, ArrangePending = priorState.ArrangePending, ItemsArranged = priorNumber("ItemsArranged"), ArrangeStatus = "Waiting for placement check", CatalogStatus = tostring(catalogProvider:GetStatus()), ESPStatus = "off", TravelStatus = "Paused", } local travelTool, topESP, ownBase, lockDue local function canCleanupForLock() local character = player.Character local humanoid = character and character:FindFirstChildOfClass("Humanoid") local root = character and character:FindFirstChild("HumanoidRootPart") return State.Alive and State.Running and State.SoftLockCancellationGeneration == State.Generation and character == State.SoftLockCancellationCharacter and humanoid and humanoid.Health > 0 and root and root.Parent == character and character:IsDescendantOf(workspace) and ownBase and ownBase() == State.SoftLockCancellationBase and ownBase and lockDue and lockDue(ownBase()) end local navigationConfig = {} local navigator = createNavigator(player, navigationConfig) local API = { Config = Config, State = State, Catalog = Catalog, Version = "0.8.0" } local questClaimer = createQuestClaimer(player, { CanCleanup = canCleanupForLock }) local progression = createProgression(player, Display, { CanCleanup = canCleanupForLock }) local bitsFarmer = createBitsFarmer(player, navigator, { CanCleanup = canCleanupForLock }) local vaultController = createVaultController(player, Display, VaultPolicy, navigator, { CanCleanup = canCleanupForLock }) local acquisitionHooks = { BeforeAcquire = function(abort, context) local base = ownBase and ownBase() local seconds = base and base:GetAttribute("LockTime") if Config.AutoLock and type(seconds) == "number" and context then local hold = (tonumber(context.HoldDuration) or 0) + (tonumber(context.PlaceHoldDuration) or 0) local distance = tonumber(context.ReturnDistance) or 0 if seconds <= 10 + hold + 8 + distance / 8 then State.StealStatus = "Waiting for relock before a long pickup/return" return false end end if not travelTool then return true end local deadline = os.clock() + 1.5 repeat if abort and abort() then return false end local released = travelTool:Stop() if released then return true end task.wait(0.05) until os.clock() >= deadline return false end, } local autoSteal = createAutoSteal(player, Display, navigator, State, Catalog, TargetPolicy, acquisitionHooks) local baseArranger = createBaseArrange(player, Display, navigator, State, Catalog, acquisitionHooks) env.StealExploitFarm = API local ui local connections = {} local retryAt = setmetatable({}, { __mode = "k" }) local nextScan, nextLock = 0, 0 local nextClaimCheck, nextNeedsRead, nextRebirthCheck, nextShopCheck, nextBitsCheck, nextSellCheck = 0, 0, 0, 0, 0, 0 local seenRebirths = player:GetAttribute("Rebirths") or 0 local nextVaultCheck = 0 local nextStealCheck = 0 local nextArrangeCheck = 0 local economyCache, accumulated, requirementsInventory, requirementsBase local seenUnitsReady = player:GetAttribute("RebirthUnitsReady") local pathPoints, pathReadAt = {}, -math.huge local function featureEnabled(name, tutorialAction) return tutorialAction and Config.AutoTutorial or (not tutorialAction and Config[name]) end local function endHold() local prompt = State.HeldPrompt State.HeldPrompt = nil if prompt then pcall(function() prompt:InputHoldEnd() end) end end function API:Pause() State.Running = false State.Generation += 1 State.SoftLockCancellationCharacter, State.SoftLockCancellationBase = nil, nil navigator:Stop() if travelTool then travelTool:Stop() end if type(bitsFarmer.Stop) == "function" then bitsFarmer:Stop() end if type(autoSteal.Stop) == "function" then autoSteal:Stop() end if type(baseArranger.Stop) == "function" then baseArranger:Stop() end endHold() State.Status = "Paused" end function API:Start() if not State.Alive or State.Running then return end if not State.StartupReady then State.Status = "Initializing controls - press Start when ready" return end State.Generation += 1 State.Running = true State.Status = "Starting" end function API:StartSelected() Config.ProgressionFarm = false self:Start() end function API:StartFullFarm() if not State.Alive or not State.StartupReady then return false end local valid, reason = TargetPolicy.Validate(Config, "Farm") if not valid then State.Status = reason return false end Config.ProgressionFarm = true State.RebirthNeeds = {} nextNeedsRead = 0 requirementsInventory = nil economyCache = nil for _, key in ipairs({ "AutoTutorial", "AutoBuy", "AutoCollect", "AutoLock", "AutoClaimQuests", "AutoRebirth", "AutoShopUpgrades", "AutoBits", "AutoSellBits", "AutoArrange", }) do Config[key] = true if ui and ui.Library and type(ui.Library.SetValue) == "function" then ui.Library:SetValue("SAE_" .. key, true) end end self:Start() return State.Running end function API:PreviewVault() if not State.Alive then return end State.VaultPreviewRequested = true State.VaultPreviewSummary = "Preview queued; it opens your own vault and stores nothing." end function API:QueueVaultCheck() if State.Alive then State.VaultSettingsRevision += 1 State.VaultCheckRequested = true end end function API:Destroy() if not State.Alive then return end self:Pause() State.Alive = false navigator:Destroy() if travelTool then travelTool:Destroy() end if topESP then topESP:Destroy() end if type(baseArranger.Destroy) == "function" then baseArranger:Destroy() end for _, c in ipairs(connections) do c:Disconnect() end if ui then ui:Destroy() end if env.StealExploitFarm == self then env.StealExploitFarm = nil end end local function cash() local v = player:GetAttribute("Money") return type(v) == "number" and v == v and v >= 0 and v < math.huge and v or 0 end ownBase = function() local folder = workspace:FindFirstChild("Bases") local name = player:GetAttribute("BaseName") local base = folder and type(name) == "string" and folder:FindFirstChild(name) if base and base:GetAttribute("OwnerId") == player.UserId then return base end end local function rootPart() local char = player.Character local hum = char and char:FindFirstChildOfClass("Humanoid") local root = char and char:FindFirstChild("HumanoidRootPart") if hum and hum.Health > 0 and root then return root end end lockDue = function(base) local remaining = base and base:GetAttribute("LockTime") local due = Config.AutoLock and player:GetAttribute("TutorialStep") == 100 and type(remaining) == "number" and remaining == remaining and remaining >= 0 and remaining <= 10 if not due then return false end local models = { base:FindFirstChild("BaseModel") } local floors = base:FindFirstChild("BaseFloors") if floors then for _, floor in ipairs(floors:GetChildren()) do models[#models + 1] = floor end end for _, model in ipairs(models) do local lock = model:FindFirstChild("LockPart") local touch = lock and lock:FindFirstChild("TouchPart") if touch and touch:IsA("BasePart") then return true end end State.LockStatus = "Own lock pads are not streamed; waiting for a reachable pad" return false end travelTool = createTravelTool(player, { IsActive = function() return State.Alive and State.StartupReady and State.Running end, GetBase = ownBase, IsCarrying = function() local character = player.Character return State.StealPending ~= nil or State.ArrangePending ~= nil or player:GetAttribute("HoldingExploit") == true or (character and character:FindFirstChild("HOLDING_EXPLOIT_MODEL") ~= nil) end, }) topESP = createTopESP(player, Display, function() return API.Catalog end) navigationConfig.OnUpdate = function() State.TravelStatus = travelTool:Tick() local base = ownBase() State.LockRemaining = base and base:GetAttribute("LockTime") if State.Running and not State.LockPriorityActive and not State.StealPending and not State.ArrangePending and not player:GetAttribute("HoldingExploit") and lockDue(base) then navigator:Stop() end end local ladderRouter = createLadderRouter(player, navigator, { GetBase = ownBase, OnUpdate = navigationConfig.OnUpdate, AllowDescent = true, AllowShaftDescent = true, }, createLadderConnector) function API:RefreshCatalog() if not State.Alive then return false end local changed, status = catalogProvider:Refresh() State.CatalogStatus = tostring(status) .. " | " .. tostring(#Catalog.Items) .. " items / " .. tostring(#Catalog.Mutations) .. " mutations" if changed then TargetPolicy.UpdateCatalog(Catalog) VaultPolicy.UpdateCatalog(Catalog) if ui and type(ui.RefreshCatalog) == "function" then ui:RefreshCatalog() end end return changed, State.CatalogStatus end navigationConfig.GetPassage = function(start, destination) local base, character = ownBase(), player.Character local model = base and base:FindFirstChild("BaseModel") local door = model and model:FindFirstChild("LaserDoor") local blocker = character and character:FindFirstChild("BaseDoorBlockerPart") local root = rootPart() if not door or not door:IsA("BasePart") or not door.CanCollide or not blocker or not root then return nil end local permission for _, child in ipairs(blocker:GetChildren()) do if child:IsA("NoCollisionConstraint") and child.Part0 == blocker and child.Part1 == door then permission = child break end end if not permission then return nil end local axis = door.Size.X < door.Size.Z and door.CFrame.RightVector or door.CFrame.LookVector local normal = Vector3.new(axis.X, 0, axis.Z) if normal.Magnitude < 0.01 then return nil end normal = normal.Unit local from, toward = (start - door.Position):Dot(normal), (destination - door.Position):Dot(normal) if from * toward >= 0 or math.abs(toward) < 0.5 then return nil end local sign = from < 0 and -1 or 1 local halfThickness = math.min(door.Size.X, door.Size.Z) * 0.5 local humanoid = character:FindFirstChildOfClass("Humanoid") local height = door.Position.Y - door.Size.Y * 0.5 + humanoid.HipHeight + root.Size.Y * 0.5 local center = Vector3.new(door.Position.X, height, door.Position.Z) local offset = normal * (halfThickness + 3.5) * sign return { Entry = center + offset, Exit = center - offset, Allowed = function() return player.Character == character and ownBase() == base and permission.Parent == blocker and permission.Part0 == blocker and permission.Part1 == door and door:IsDescendantOf(base) end, } end local function live(token, base) local valid = State.Alive and State.Running and State.Generation == token and rootPart() ~= nil and ownBase() == base and not player:GetAttribute("HoldingExploit") local preempt = valid and not State.LockPriorityActive and lockDue(base) if preempt then State.SoftLockCancellationGeneration = token State.SoftLockCancellationCharacter, State.SoftLockCancellationBase = player.Character, base end return valid and not preempt end local function slotSnapshot(base) local occupied, count, total = {}, 0, 0 local slots = base and base:FindFirstChild("Slots") if slots then for _, slot in ipairs(slots:GetChildren()) do if slot:IsA("Model") then total += 1 if slot:GetAttribute("Occupied") then occupied[slot] = true count += 1 end end end end return occupied, count, total end local function ownedLimit(total) return Config.ProgressionFarm and total or math.min(total, Config.MaxOwnedUnits) end local function rebirthInventory(base) local snapshot = {} local slots = base and base:FindFirstChild("Slots") if not slots then return nil end for _, slot in ipairs(slots:GetChildren()) do if slot:IsA("Model") then local mutations = slot:FindFirstChild("Mutations") snapshot[slot] = { occupied = slot:GetAttribute("Occupied"), stolen = slot:GetAttribute("Stolen"), model = slot:FindFirstChild("EXPLOIT_MODEL"), modelAttribute = slot:GetAttribute("ExploitModel"), mutations = mutations and mutations.Value, } end end return snapshot end local function sameInventory(before, after) if not before or not after then return false end for slot, entry in pairs(before) do local current = after[slot] if not current then return false end for _, key in ipairs({ "occupied", "stolen", "model", "modelAttribute", "mutations" }) do if entry[key] ~= current[key] then return false end end end for slot in pairs(after) do if not before[slot] then return false end end return true end local function vaultRulesSnapshot() local settings = { AutoVault = Config.AutoVault, VaultMaxSerial = Config.VaultMaxSerial, VaultMatchMode = Config.VaultMatchMode, VaultMutationMode = Config.VaultMutationMode, } for _, key in ipairs({ "VaultRarities", "VaultMutations", "VaultItemNames" }) do settings[key] = type(Config[key]) == "table" and table.clone(Config[key]) or Config[key] end return settings end local function sameVaultRules(before) for key, value in pairs(before) do local current = Config[key] if type(value) == "table" and type(current) == "table" then for index, item in pairs(value) do if current[index] ~= item then return false end end for index, item in pairs(current) do if value[index] ~= item then return false end end elseif current ~= value then return false end end return true end local function promptPosition(prompt) local parent = prompt and prompt.Parent if parent and parent:IsA("Attachment") then return parent.WorldPosition end if parent and parent:IsA("BasePart") then return parent.Position end end local function buyPrompt(unit) local attachment = unit:FindFirstChild("Attachment") local prompt = attachment and attachment:FindFirstChild("BuyPrompt") if prompt and prompt:IsA("ProximityPrompt") then return prompt end end local function tagIncomeQuote(tag) if not tag then return nil end local n = 0 for _, label in ipairs(tag:GetDescendants()) do n += 1 if n > 80 then break end if label:IsA("TextLabel") then local visible = Display.VisibleText(label.Text) local text = visible and visible:match("^%s*(.-)%s*/s%s*$") if text then local quote = Display.ParseMoney(text, false) if quote then return quote end end end end end local function incomeOf(unit) local attachment = unit and unit:FindFirstChild("Attachment") local quote = tagIncomeQuote(attachment and attachment:FindFirstChild("Nametag")) return quote and quote.amount, quote end local function displayedBaseEconomy(base, force) if not force and economyCache and economyCache.base == base and os.clock() - economyCache.at < 1 then return economyCache end local slots = base and base:FindFirstChild("Slots") if not slots then return { income = nil, banked = 0 } end local total, banked, reliable = 0, 0, true for index, slot in ipairs(slots:GetChildren()) do if index > 200 then reliable = false break end if slot:IsA("Model") and slot:GetAttribute("Occupied") and not slot:GetAttribute("Stolen") then local attachment = slot:FindFirstChild("NametagAttachment") local quote = tagIncomeQuote(attachment and attachment:FindFirstChild("Nametag")) if quote then total += quote.upper else reliable = false end banked += accumulated and (accumulated(slot, true) or 0) or 0 end end economyCache = { base = base, at = os.clock(), income = reliable and total or nil, banked = banked } return economyCache end local function affordable(prompt) if not prompt or not prompt.Parent or not prompt.Enabled or prompt.ActionText ~= "Purchase" then return nil end local quote = Display.Quote(prompt.ObjectText) if not quote or quote.upper > Config.MaxPurchasePrice or quote.upper + Config.CashReserve > cash() then return nil end return quote end local function reachableBeforeExit(unit, root) if os.clock() - pathReadAt > 2 then pathReadAt = os.clock() pathPoints = {} local paths = workspace:FindFirstChild("Paths") local main = paths and paths:FindFirstChild("MainPath") if main then local points = {} for _, part in ipairs(main:GetChildren()) do if part:IsA("BasePart") and tonumber(part.Name) then points[#points + 1] = part end if #points >= 100 then break end end table.sort(points, function(a, b) return tonumber(a.Name) < tonumber(b.Name) end) for _, part in ipairs(points) do pathPoints[#pathPoints + 1] = part.Position end end end if #pathPoints < 2 then return true end local function flat(v) return Vector3.new(v.X, 0, v.Z) end local position = flat(unit.Position) local closest, remaining = math.huge, nil for index = 1, #pathPoints - 1 do local first, last = flat(pathPoints[index]), flat(pathPoints[index + 1]) local segment = last - first local length = segment.Magnitude if length > 0.001 then local fraction = math.clamp((position - first):Dot(segment) / (length * length), 0, 1) local projected = first + segment * fraction local offset = (position - projected).Magnitude if offset < closest then closest = offset remaining = length * (1 - fraction) for later = index + 1, #pathPoints - 1 do remaining += flat(pathPoints[later + 1] - pathPoints[later]).Magnitude end end end end if not remaining or closest > 20 then return true end local humanoid = player.Character and player.Character:FindFirstChildOfClass("Humanoid") local walkSpeed = humanoid and humanoid.WalkSpeed or 16 local chaseSeconds = flat(unit.Position - root.Position).Magnitude / math.max(1, walkSpeed - 8) * 1.25 + 2 return remaining / 8 > chaseSeconds end local function reservedRebirthSlots() if not Config.AutoRebirth then return 0 end if player:GetAttribute("RebirthUnitsReady") == false and #State.RebirthNeeds == 0 then return math.huge end local reserved = 0 for _, need in ipairs(State.RebirthNeeds) do if need.missing then reserved += math.max(1, (tonumber(need.count) or 1) - (tonumber(need.current) or 0)) end end return reserved end local function farmMetadata(unit, prompt) local attachment = unit and unit:FindFirstChild("Attachment") local tag = attachment and attachment:FindFirstChild("Nametag") local record, ambiguous if tag then for index, label in ipairs(tag:GetDescendants()) do if index > 80 then ambiguous = true break end if label:IsA("TextLabel") then local text = Display.VisibleText(label.Text) local resolved = text and TargetPolicy.Resolve(text) if resolved then if record and record ~= resolved then ambiguous = true break end record = resolved end end end end local item = {} if record and not ambiguous then item.name, item.type, item.rarity = record.name, record.type, record.rarity end local mutations = unit and unit:FindFirstChild("Mutations") local raw = mutations and mutations.Value if type(raw) == "string" and #raw <= 8192 then local ok, values = pcall(function() return game:GetService("HttpService"):JSONDecode(raw) end) if ok and type(values) == "table" then item.mutations = values end end return item end local function requiredItem(item) if not Config.AutoRebirth or player:GetAttribute("RebirthUnitsReady") == true then return false end local name = type(item.name) == "string" and item.name:lower():gsub("[^%w]", "") for _, need in ipairs(State.RebirthNeeds) do if need.missing and type(need.name) == "string" then local wanted = need.name:lower():gsub("[^%w]", "") if name and name == wanted then return true end if need.name:match("^Any%s+") and type(need.rarity) == "string" and type(item.rarity) == "string" then local actual, minimum = rarityRank[item.rarity:lower()], rarityRank[need.rarity:lower()] if actual and minimum and actual >= minimum then return true end end end end return false end local function growthReserve() local reserve = Config.CashReserve if player:GetAttribute("RebirthUnitsReady") == true then return reserve end local spendable = math.max(0, cash() - reserve) local missingCost, cheapest, complete = 0, nil, true for _, need in ipairs(State.RebirthNeeds) do if need.missing then if type(need.price) ~= "number" or need.price < 0 or need.price ~= need.price or need.price == math.huge then complete = false else missingCost += need.price * math.max(1, (tonumber(need.count) or 1) - (tonumber(need.current) or 0)) if need.price <= spendable and (not cheapest or need.price < cheapest) then cheapest = need.price end end end end if complete and missingCost <= spendable then return reserve + missingCost end return reserve + (cheapest or 0) end local function growthAllowed(quote, incomeQuote, economy) local baseIncome = economy and economy.income if not quote or not incomeQuote or baseIncome == nil then return false end local goal = player:GetAttribute("RebirthMoneyNeeded") if player:GetAttribute("RebirthUnitsReady") == true and type(goal) == "number" and cash() + (economy.banked or 0) >= goal then return false end local addedIncome = math.max(0, incomeQuote.amount - (incomeQuote.upper - incomeQuote.amount)) return GrowthPolicy.ShouldInvest({ money = cash(), goal = player:GetAttribute("RebirthMoneyNeeded"), currentIncome = baseIncome, cost = quote.upper, addedIncome = addedIncome, deliverySeconds = Config.ArrivalTimeout + 35, cashReserve = growthReserve(), }) end local function farmMatches(unit, prompt) local valid = TargetPolicy.Validate(Config, "Farm") if not valid then return false end local item = farmMetadata(unit, prompt) if Config.ProgressionFarm and requiredItem(item) then return true end if not TargetPolicy.Matches(item, Config, "Farm") then return false end local income, incomeQuote = incomeOf(unit) if (income or 0) < Config.MinIncome then return false end if Config.ProgressionFarm and Config.AutoRebirth then return growthAllowed(affordable(prompt), incomeQuote, displayedBaseEconomy(ownBase())) end return true end local function chooseUnit(base, tutorial) local _, occupied, total = slotSnapshot(base) if occupied >= ownedLimit(total) then return nil end local rebirthCost = player:GetAttribute("RebirthMoneyNeeded") if not tutorial and not Config.ProgressionFarm and Config.AutoRebirth and player:GetAttribute("RebirthUnitsReady") == true and type(rebirthCost) == "number" and rebirthCost > 0 then return nil end if not tutorial and Config.AutoRebirth and player:GetAttribute("RebirthUnitsReady") == false and #State.RebirthNeeds == 0 then return nil end local reserved = tutorial and 0 or reservedRebirthSlots() local units = workspace:FindFirstChild("ExploitRots") local root = rootPart() if not units or not root then return nil end local best local economy = Config.ProgressionFarm and Config.AutoRebirth and displayedBaseEconomy(base) or nil local now = os.clock() for index, unit in ipairs(units:GetChildren()) do if index > 200 then break end if unit:IsA("BasePart") and (retryAt[unit] or 0) <= now then local prompt = buyPrompt(unit) local quote = affordable(prompt) if quote and reachableBeforeExit(unit, root) then local targetItem = farmMetadata(unit, prompt) local required = not tutorial and requiredItem(targetItem) local bypass = Config.ProgressionFarm and required if not tutorial and ( not TargetPolicy.Validate(Config, "Farm") or (not bypass and not TargetPolicy.Matches(targetItem, Config, "Farm")) ) then continue end local income, incomeQuote = incomeOf(unit) if not tutorial and Config.ProgressionFarm and Config.AutoRebirth and not required and not growthAllowed(quote, incomeQuote, economy) then continue end if tutorial or bypass or (income or 0) >= Config.MinIncome then local distance = (unit.Position - root.Position).Magnitude local score = tutorial and -quote.upper or (income or 0) if required then score += 1e50 end if not tutorial and Config.AutoRebirth and not required and ownedLimit(total) - occupied <= reserved then continue end if not best or score > best.score or (score == best.score and distance < best.distance) then best = { unit = unit, prompt = prompt, quote = quote, score = score, distance = distance } end end end end if index % 40 == 0 then task.wait() end end return best end local function updatePending() local pending = State.Pending if not pending then return end if ownBase() ~= pending.base then API:Pause() State.Status = "Base changed during delivery - review before resuming" return end local current = slotSnapshot(pending.base) local disappeared = not pending.unit:IsDescendantOf(workspace) for slot in pairs(current) do if disappeared and not pending.slots[slot] then State.Purchases += 1 State.Pending = nil State.RebirthNeeds = {} economyCache = nil nextNeedsRead = 0 nextVaultCheck = 0 State.Status = "Delivery confirmed at own base" return end end if disappeared then pending.disappearedAt = pending.disappearedAt or os.clock() if os.clock() - pending.disappearedAt > 5 then State.LostDeliveries += 1 State.Pending = nil State.Status = "Delivery ended without an own-slot receipt - continuing" end elseif os.clock() > pending.deadline then API:Pause() State.Status = "Delivery not confirmed - review, then reset delivery" end end function API:ResetDelivery() self:Pause() State.Pending = nil State.Status = "Delivery reservation cleared - press Start" end local function purchase(candidate, base, token, force) local unit, prompt = candidate.unit, candidate.prompt local function abort() return not live(token, base) or not featureEnabled("AutoBuy", force) or not unit:IsDescendantOf(workspace) or not affordable(prompt) or (not force and not farmMatches(unit, prompt)) end State.Status = "Walking to " .. (Display.VisibleText(prompt.ObjectText) or "unit") local reached, reason = navigator:GoTo(function() return not abort() and promptPosition(prompt) or nil end, 5, 35, abort) if not reached or abort() then retryAt[unit] = os.clock() + 15 if live(token, base) then State.Status = "Purchase approach: " .. tostring(reason) end return end local _, count, total = slotSnapshot(base) if count >= ownedLimit(total) then return end local position, root = promptPosition(prompt), rootPart() if not position or not root or (root.Position - position).Magnitude > prompt.MaxActivationDistance - 2 then retryAt[unit] = os.clock() + 10 return end local duration = prompt.HoldDuration if duration < 0 or duration > 5 then return end if not force and Config.ProgressionFarm and Config.AutoRebirth then displayedBaseEconomy(base, true) if abort() then return end end local before, slots = cash(), slotSnapshot(base) State.BuyAttempts += 1 State.Status = "Holding purchase prompt" State.HeldPrompt = prompt local ok, err = pcall(function() prompt:InputHoldBegin() local untilTime = os.clock() + duration + 0.35 while os.clock() < untilTime do local r, pos = rootPart(), promptPosition(prompt) if not live(token, base) or not featureEnabled("AutoBuy", force) or not r or not pos or (r.Position - pos).Magnitude > prompt.MaxActivationDistance - 1 then break end if prompt.ActionText ~= "Purchase" then break end if not force and not farmMatches(unit, prompt) then break end if not affordable(prompt) then break end task.wait(0.03) end end) endHold() if not ok then State.LastError = tostring(err) end local deadline = os.clock() + 2 repeat task.wait(0.1) if cash() < before or not prompt.Parent or prompt.ActionText ~= "Purchase" then break end until os.clock() >= deadline or not State.Alive or State.Generation ~= token local debit = cash() < before if debit or (prompt.Parent and prompt.ActionText == "Outbid") then State.Pending = { unit = unit, base = base, slots = slots, deadline = os.clock() + Config.ArrivalTimeout, spent = math.max(0, before - cash()), } if not debit and State.Running and State.Generation == token then API:Pause() State.Status = "Purchase ownership uncertain - review, then reset delivery" elseif State.Running and State.Generation == token then State.Status = "Awaiting own-base delivery" end else retryAt[unit] = os.clock() + 20 if State.Running and State.Generation == token then State.Status = "No purchase receipt - will retry another unit later" end end end local function walkToPart(part, base, token, radius, enabled) return navigator:GoTo( function() return part:IsDescendantOf(base) and part.Position or nil end, radius or 0.9, 35, function() return not live(token, base) or not part:IsDescendantOf(base) or not enabled() end ) end local function tryLock(base, token, force) if not featureEnabled("AutoLock", force) or os.clock() < nextLock then return false end local remaining = base:GetAttribute("LockTime") if type(remaining) ~= "number" or remaining ~= remaining or remaining < 0 or remaining > (force and 0 or 10) then return false end local root = rootPart() if not root then return false end local models = { base:FindFirstChild("BaseModel") } local floors = base:FindFirstChild("BaseFloors") if floors then for _, floor in ipairs(floors:GetChildren()) do models[#models + 1] = floor end end local touch, selectedModel, distance for _, model in ipairs(models) do local button = model:FindFirstChild("LockPart") local part = button and button:FindFirstChild("TouchPart") if part and part:IsA("BasePart") then local delta = part.Position - root.Position local score = delta.Magnitude + math.abs(delta.Y) * 2 if not distance or score < distance then touch, selectedModel, distance = part, model, score end end end if not touch then return false end State.LockPriorityActive = true local ok, err = xpcall(function() local function enabled() return featureEnabled("AutoLock", force) end local function aborted() return not live(token, base) or not enabled() or not touch:IsDescendantOf(base) end if remaining > 0 then local bounds = selectedModel:FindFirstChild("InsideBaseBounds") or base:FindFirstChild("InsideBaseBounds") local direction = bounds and Vector3.new(bounds.Position.X - touch.Position.X, 0, bounds.Position.Z - touch.Position.Z) if not direction or direction.Magnitude < 0.1 then direction = Vector3.new(1, 0, 0) end local offset = math.max(touch.Size.X, touch.Size.Z) * 0.5 + 2.5 local readyPoint = touch.Position + direction.Unit * offset State.Status = "Returning for base relock (last 10 seconds)" local reached = navigator:GoTo(function() return not aborted() and readyPoint or nil end, 0.8, 40, aborted) if not reached or aborted() then State.LockStatus = "Relock approach interrupted; retrying" return end local deadline = os.clock() + 14 repeat remaining = base:GetAttribute("LockTime") State.LockRemaining = remaining if type(remaining) ~= "number" or remaining ~= remaining or remaining < 0 then return end if remaining > 10 then State.LockStatus = "Native lock renewed" return end if remaining <= 0 then break end State.Status = "Ready to relock | " .. tostring(remaining) .. "s" task.wait(0.1) until aborted() or os.clock() >= deadline if aborted() or type(remaining) ~= "number" or remaining > 0 then return end end State.Status = "Relocking own base" local reached = walkToPart(touch, base, token, 0.65, enabled) if aborted() then return end task.wait(0.6) local locked = base:GetAttribute("LockTime") State.LockStatus = type(locked) == "number" and locked > 0 and "Base lock confirmed" or "Lock touch not confirmed; retrying" if type(locked) == "number" and locked > 0 then State.SoftLockCancellationGeneration, State.SoftLockCancellationCharacter, State.SoftLockCancellationBase = nil, nil, nil end State.Status = State.LockStatus if reached and not (type(locked) == "number" and locked > 0) then local position = rootPart() if position then local direction = position.Position - touch.Position direction = Vector3.new(direction.X, 0, direction.Z) if direction.Magnitude < 0.1 then direction = Vector3.new(1, 0, 0) end local off = touch.Position + direction.Unit * (math.max(touch.Size.X, touch.Size.Z) * 0.5 + 2.5) navigator:GoTo(function() return not aborted() and off or nil end, 0.7, 8, aborted) end end end, debug.traceback) State.LockPriorityActive = false nextLock = os.clock() + 0.75 if not ok then error(err) end return true end accumulated = function(slot, conservative) local collector = slot:FindFirstChild("Collector") local ui = collector and collector:FindFirstChild("CollectGui") local holder = ui and ui:FindFirstChild("Holder") local label = holder and holder:FindFirstChild("Accumulated") if label and label:IsA("TextLabel") then local text = Display.VisibleText(label.Text) if text then text = text:gsub("%s*[xXĂ—]%s*2%s*$", "") local quote = Display.ParseMoney(text, false) if quote then local amount = conservative and math.max(0, quote.amount - (quote.upper - quote.amount)) or quote.amount return amount, collector end end end return nil, collector end local function collectOne(base, token, force) if not featureEnabled("AutoCollect", force) then return false end local folder, root = base:FindFirstChild("Slots"), rootPart() if not folder or not root then return false end local humanoid = player.Character and player.Character:FindFirstChildOfClass("Humanoid") local speed = math.max(8, humanoid and humanoid.WalkSpeed or 28) local best for _, slot in ipairs(folder:GetChildren()) do if slot:GetAttribute("Occupied") and (retryAt[slot] or 0) <= os.clock() then local amount, part = accumulated(slot) if part and part:IsA("BasePart") and (amount == nil or amount >= 1) then local distance = (part.Position - root.Position).Magnitude local travel = distance / speed + math.abs(part.Position.Y - root.Position.Y) / 8 + 0.65 local score = amount and amount / math.max(1, travel) or 0 if not best or score > best.score or (score == best.score and distance < best.distance) then best = { slot = slot, part = part, amount = amount, distance = distance, score = score } end end end end if not best then return false end local before = cash() State.Status = "Collecting own slot " .. best.slot.Name local reached = walkToPart(best.part, base, token, 0.8, function() return featureEnabled("AutoCollect", force) end) if not live(token, base) then return true end task.wait(0.65) local after, left = cash(), accumulated(best.slot) if after > before or (best.amount and left and left < best.amount) then State.Collected += math.max(0, after - before) State.Collections += 1 economyCache = nil State.Status = "Collection confirmed" retryAt[best.slot] = os.clock() + 4 else State.Status = reached and "Collection touch not confirmed" or "Collector route unavailable" retryAt[best.slot] = os.clock() + 12 end return true end local nextQuestAttempt = 0 local function tutorial(base, token) local phase = player:GetAttribute("TutorialStep") State.TutorialStep = phase if not Config.AutoTutorial or phase == 100 then return false end if phase == 1 then if State.Pending then State.Status = "Tutorial 1/4: awaiting purchase confirmation" elseif os.clock() >= nextScan then nextScan = os.clock() + Config.PurchaseScanInterval local candidate = chooseUnit(base, true) if candidate and live(token, base) then purchase(candidate, base, token, true) else State.Status = "Tutorial 1/4: waiting for an affordable starter unit" end end elseif phase == 2 then if not collectOne(base, token, true) then State.Status = State.Pending and "Tutorial 2/4: waiting for delivery before collecting" or "Tutorial 2/4: waiting for income on an owned collector" end elseif phase == 3 then if not tryLock(base, token, true) then local remaining = base:GetAttribute("LockTime") State.Status = type(remaining) == "number" and remaining > 0 and ("Tutorial 3/4: waiting for lock reset (" .. remaining .. "s)") or "Tutorial 3/4: walking to the own-base lock" end elseif phase == 4 then if os.clock() >= nextQuestAttempt then nextQuestAttempt = os.clock() + 8 State.Status = "Tutorial 4/4: claiming the first-purchase quest" local complete, reason = claimFirstQuest(player, function() return not live(token, base) or not Config.AutoTutorial end) State.TutorialStep = player:GetAttribute("TutorialStep") if live(token, base) then State.Status = complete and "Tutorial complete - normal farming resumed" or ("Tutorial 4/4: " .. tostring(reason)) end end elseif phase == nil or phase == 0 then State.Status = "Waiting for tutorial state to load" else API:Pause() State.Status = "Unknown tutorial step - review before resuming" end return true end local function vaultSummary(report) local candidates = report.candidates or {} if #candidates == 0 then return report.status or "No matching pad items" end local lines = {} for index, item in ipairs(candidates) do if index > 8 then lines[#lines + 1] = "+ " .. tostring(#candidates - 8) .. " more" break end local serial = type(item.serial) == "number" and ("#" .. tostring(item.serial)) or "no numbered serial" local mutations = type(item.mutations) == "table" and table.concat(item.mutations, ", ") or "" lines[#lines + 1] = tostring(item.name or "Item") .. " | " .. tostring(item.rarity or "Unknown") .. " | " .. serial .. (mutations ~= "" and (" | " .. mutations) or "") end return table.concat(lines, "\n") end local function checkVault(base, token, preview) navigator:Stop() local revision = State.VaultSettingsRevision local report = vaultController:Scan(Config, function() return not State.Alive or State.Generation ~= token or ownBase() ~= base or not rootPart() or player:GetAttribute("HoldingExploit") == true or (not preview and (not State.Running or not Config.AutoVault)) or (not preview and not live(token, base)) end, preview == true) State.VaultStatus = report.status or "Vault checked" State.VaultPreviewSummary = vaultSummary(report) State.VaultUsed, State.VaultCapacity = report.used, report.capacity if not preview then State.VaultStored += report.stored or 0 State.VaultRebirthBlocked = report.metadataReliable ~= true or report.blockRebirth == true or (report.remaining or 0) > 0 State.VaultCheckRequested = revision ~= State.VaultSettingsRevision nextVaultCheck = os.clock() + Config.VaultCheckInterval if (report.stored or 0) > 0 then State.RebirthNeeds = {} nextNeedsRead = 0 end end return report end local function previewVault() State.VaultPreviewRequested = false if State.StealPending or State.ArrangePending or player:GetAttribute("HoldingExploit") then State.VaultStatus = "Finish the carried item before previewing the vault" return end local base = ownBase() if not base or not rootPart() then State.VaultStatus = "Waiting for character and owned base to preview" return end checkVault(base, State.Generation, true) end local function runSteal(base, token) if not Config.AutoSteal or Config.StealWhitelistInvalid then navigator:Stop() State.StealStatus = Config.StealWhitelistInvalid and "Correct the protected-player list before stealing" or "Auto steal paused; any carried item remains in your hands" return nil end State.Status = State.StealPending and "Returning a tracked carried item" or "Looking for an unlocked base" local report = autoSteal:Run(Config, function() return not State.Alive or not State.Running or State.Generation ~= token or ownBase() ~= base or not rootPart() or not Config.AutoSteal or Config.StealWhitelistInvalid == true end, reservedRebirthSlots()) nextStealCheck = os.clock() + Config.StealCheckInterval State.StealStatus = report.status or "Steal checked" State.StealsCompleted += report.stolen or 0 if (report.stolen or 0) > 0 then State.RebirthNeeds = {} nextNeedsRead, nextVaultCheck = 0, 0 State.VaultCheckRequested = true end if report.pauseRequired then API:Pause() end if State.Alive and State.Running and State.Generation == token then State.Status = State.StealStatus end return report end local function runArrange(base, token) State.Status = State.ArrangePending and "Returning a tracked owned item" or "Arranging valuable items" local report = baseArranger:Run(Config, function() if not State.Alive or not State.Running or State.Generation ~= token or ownBase() ~= base or not rootPart() then return true end return not State.ArrangePending and not player:GetAttribute("HoldingExploit") and not live(token, base) end) nextArrangeCheck = os.clock() + Config.ArrangeCheckInterval State.ArrangeStatus = report.status or "Placement checked" State.ItemsArranged += report.moved or 0 if (report.moved or 0) > 0 then State.RebirthNeeds = {} nextNeedsRead = 0 economyCache = nil State.VaultCheckRequested = true end if report.pauseRequired then API:Pause() end if State.Alive and State.Running and State.Generation == token then State.Status = State.ArrangeStatus end return report end local function step() local token = State.Generation local base = ownBase() if not base or not rootPart() or not player:GetAttribute("DataLoaded") then navigator:Stop() State.Status = "Waiting for character and owned base" return end if State.StealPending then runSteal(base, token) return end if State.ArrangePending then runArrange(base, token) return end if player:GetAttribute("HoldingExploit") then navigator:Stop() State.Status = "Waiting while you carry a unit" return end updatePending() if lockDue(base) and tryLock(base, token) then return end if not live(token, base) then return end if Config.AutoRebirth then local currentInventory = rebirthInventory(base) local unitsReady = player:GetAttribute("RebirthUnitsReady") if requirementsInventory and ( requirementsBase ~= base or seenUnitsReady ~= unitsReady or not sameInventory(requirementsInventory, currentInventory) ) then State.RebirthNeeds = {} nextNeedsRead = 0 economyCache = nil end requirementsInventory, requirementsBase, seenUnitsReady = currentInventory, base, unitsReady else requirementsInventory, requirementsBase = nil, nil State.RebirthNeeds = {} nextNeedsRead = 0 end if tutorial(base, token) then return end local count = player:GetAttribute("Rebirths") or 0 if count > seenRebirths then State.RebirthsCompleted += count - seenRebirths seenRebirths = count State.RebirthNeeds = {} nextNeedsRead, nextRebirthCheck, nextShopCheck, nextScan = 0, 0, 0, 0 nextVaultCheck = 0 end local function abort() return not live(token, base) end if Config.AutoVault and not State.Pending and (State.VaultCheckRequested or os.clock() >= nextVaultCheck) then checkVault(base, token, false) return end if Config.AutoClaimQuests and os.clock() >= nextClaimCheck then nextClaimCheck = os.clock() + Config.QuestClaimInterval if questClaimer:HasReadyRewards() then navigator:Stop() State.Status = "Claiming completed quest rewards" local report = questClaimer:Scan(function() return abort() or not Config.AutoClaimQuests end) State.QuestClaims += report.claimed or 0 State.QuestClaimStatus = report.status or "Checked" for group, amount in pairs(report.byGroup or {}) do State.QuestClaimsByGroup[group] = (State.QuestClaimsByGroup[group] or 0) + amount end if not abort() then State.Status = State.QuestClaimStatus end return else State.QuestClaimStatus = "No completed rewards waiting" end end if Config.AutoRebirth and not State.Pending then local ready = progression:RebirthReady() if ready and Config.VaultSettingsInvalid then State.ProgressionStatus = "Rebirth waiting: correct invalid vault filters" elseif ready and os.clock() >= nextRebirthCheck then nextRebirthCheck = os.clock() + 5 local protectedInventory, protectedRules if Config.AutoVault then protectedRules = vaultRulesSnapshot() checkVault(base, token, false) nextRebirthCheck = os.clock() + 5 if abort() then return end if not sameVaultRules(protectedRules) then State.VaultCheckRequested = true State.ProgressionStatus = "Rebirth waiting: vault filters changed" return end if State.VaultRebirthBlocked then State.ProgressionStatus = "Rebirth waiting: " .. State.VaultStatus return end if not progression:RebirthReady() then State.ProgressionStatus = "Vault protection completed; rebuilding rebirth requirements" return end protectedInventory = rebirthInventory(base) end navigator:Stop() State.Status = "Completing rebirth" local beforeRebirth = player:GetAttribute("Rebirths") or 0 local report = progression:TryRebirth(function() if abort() or not Config.AutoRebirth or Config.VaultSettingsInvalid then return true end if (player:GetAttribute("Rebirths") or 0) > beforeRebirth then return false end if protectedRules and ( not sameVaultRules(protectedRules) or not sameInventory(protectedInventory, rebirthInventory(base)) ) then State.VaultCheckRequested = true State.VaultStatus = "Inventory or vault filters changed - rechecking protection" return true end return false end) nextRebirthCheck = os.clock() + 5 State.ProgressionStatus = report.status or "Rebirth checked" nextNeedsRead = 0 if report.success then State.Pending = nil end return elseif not ready and os.clock() >= nextNeedsRead then nextNeedsRead = os.clock() + 30 local report = progression:ReadRebirthNeeds(function() return abort() or not Config.AutoRebirth end) if report.success then State.RebirthNeeds = report.needs or {} if player:GetAttribute("RebirthUnitsReady") == false then local missing = false for _, need in ipairs(State.RebirthNeeds) do if need.missing then missing = true break end end if not missing then State.RebirthNeeds = {} nextNeedsRead = os.clock() + 2 end end elseif player:GetAttribute("RebirthUnitsReady") == false then State.RebirthNeeds = {} nextNeedsRead = os.clock() + 2 end State.ProgressionStatus = report.status or "Waiting for rebirth requirements" return end end if Config.ProgressionFarm and Config.AutoRebirth and player:GetAttribute("RebirthUnitsReady") == true then local needed = player:GetAttribute("RebirthMoneyNeeded") local economy = displayedBaseEconomy(base) if type(needed) == "number" and needed > 0 and economy.banked > 0 and cash() + economy.banked >= needed then State.ProgressionStatus = "Collecting the cash already available for rebirth" if collectOne(base, token) then return end end end if Config.AutoShopUpgrades and not State.Pending and os.clock() >= nextShopCheck then nextShopCheck = os.clock() + Config.ProgressionInterval local reserve = Config.CashReserve local needed = player:GetAttribute("RebirthMoneyNeeded") if Config.AutoRebirth and type(needed) == "number" then reserve = math.max(reserve, needed) end local report = progression:BuyUpgrade(function() return abort() or not Config.AutoShopUpgrades end, { CashReserve = reserve, MaxPrice = math.huge }) State.ProgressionStatus = report.status or "Shop checked" if report.success then State.UpgradesBought += 1 return end end if abort() then return end if Config.AutoSellBits and os.clock() >= nextSellCheck and (player:GetAttribute("Bits") or 0) >= Config.MinBitsToSell then nextSellCheck = os.clock() + 15 State.Status = "Selling bits to Bitdancer" local report = bitsFarmer:Sell(function() return abort() or not Config.AutoSellBits end, function() return (player:GetAttribute("Bits") or 0) >= Config.MinBitsToSell end) nextSellCheck = os.clock() + 15 State.BitsStatus = report.status or "Sale checked" State.BitsSold += report.sold or 0 return end if Config.AutoBits and os.clock() >= nextBitsCheck then nextBitsCheck = os.clock() + Config.BitsCollectInterval State.Status = "Collecting bits" local report = bitsFarmer:Collect(function() return abort() or not Config.AutoBits end) nextBitsCheck = os.clock() + Config.BitsCollectInterval State.BitsStatus = report.status or "Bits checked" State.BitsCollected += report.collected or 0 if report.success then return end end if abort() then return end if tryLock(base, token) then return end if Config.AutoArrange and not State.Pending and os.clock() >= nextArrangeCheck then local report = runArrange(base, token) if report.attempted or State.ArrangePending or abort() then return end end if Config.AutoSteal and not Config.StealWhitelistInvalid and not Config.StealFiltersInvalid and not State.Pending and os.clock() >= nextStealCheck then local report = runSteal(base, token) if abort() or State.StealPending or (report and (report.attempted or report.success)) then return end end if Config.AutoBuy and not State.Pending and os.clock() >= nextScan then nextScan = os.clock() + Config.PurchaseScanInterval local candidate = chooseUnit(base) if candidate and live(token, base) then purchase(candidate, base, token) return end end if collectOne(base, token) then return end State.Status = State.Pending and "Waiting for delivery / income" or "Waiting for reachable affordable units / income" end local function makeUI() ui = createFarmUI(API, player, function() local _, count, total = slotSnapshot(ownBase()) return cash(), count, total end) API.UI = ui end local uiOK, uiError = pcall(makeUI) if not uiOK then API:Destroy() error("[SAEFarm] VibeUI initialization failed: " .. tostring(uiError)) end task.spawn(function() while State.Alive do if State.Running or State.VaultPreviewRequested then local action = State.VaultPreviewRequested and previewVault or step State.Busy = true local ok, err = xpcall(action, debug.traceback) State.Busy = false State.WorkerSteps += 1 if not ok then API:Pause() State.LastError = tostring(err) State.Status = "Paused after error - inspect State.LastError" warn("[SAEFarm] " .. tostring(err)) end end task.wait(0.25) end end) task.spawn(function() local nextCatalogRefresh = 0 while State.Alive do local ok, err = xpcall(function() navigationConfig.OnUpdate() local report = topESP:Tick(Config) State.ESPStatus = type(report) == "table" and report.status or "off" if os.clock() >= nextCatalogRefresh then nextCatalogRefresh = os.clock() + 30 API:RefreshCatalog() end end, debug.traceback) if not ok then Config.Top3ESP = false topESP:Stop() API:Pause() State.LastError = tostring(err) warn("[SAEFarm] Travel/visuals stopped: " .. tostring(err)) end task.wait(0.2) end end) print( "[SAEFarm 0.8.0] Loaded with all automation and ESP off. Click Start rebirth farm, or select features then Start selected." ) return API