-- Join Discord For More Open Sources https://discord.gg/axonic repeat task.wait() until game:IsLoaded() repeat task.wait() until game:GetService("Players").LocalPlayer local Env = type(getgenv) == "function" and getgenv() or _G if type(Env.AxonicPetSim99OpenCleanup) == "function" then pcall(Env.AxonicPetSim99OpenCleanup) end if type(Env.AxonicPetSim99Cleanup) == "function" then pcall(Env.AxonicPetSim99Cleanup) end local function createEmbeddedAreaModule() local Area = {} local Players = game:GetService("Players") local ReplicatedStorage = game:GetService("ReplicatedStorage") local LocalPlayer = Players.LocalPlayer local Library = ReplicatedStorage:WaitForChild("Library", 999999) local ZoneCmds = require(Library.Client.ZoneCmds) local CurrencyCmds = require(Library.Client.CurrencyCmds) local Network = require(Library.Client.Network) local Balancing = require(Library.Balancing) local ZonesUtil = require(Library.Util.ZonesUtil) local Directory = require(Library.Directory) local state = { Enabled = false, Status = "Idle", CurrentZone = nil, LastPurchase = 0, LastTeleportZone = nil, LastTeleportPosition = nil, TargetZoneOverride = nil, Mode = "Best", Notify = nil, Paused = false, MoveGeneration = 0, PurchaseGeneration = 0, } local settings = { MoveInterval = 0.6, PurchaseInterval = 1.5, PurchaseCooldown = 3, RetpDistance = 35, CenterYOffset = 4, } local function setStatus(message) state.Status = message end local function notify(title, description, duration) if state.Notify then pcall(state.Notify, title, description, duration or 3) end end local function getCharacter() local character = LocalPlayer.Character if not character then return nil, nil end local humanoid = character:FindFirstChildOfClass("Humanoid") local root = character:FindFirstChild("HumanoidRootPart") if not humanoid or not root or humanoid.Health <= 0 then return nil, nil end return humanoid, root end local function getBestUnlockedZoneId() local bestZoneId = nil local bestZoneNumber = -math.huge for zoneId, zoneDir in pairs(Directory.Zones) do if zoneDir.ZoneNumber and ZoneCmds.Owns(zoneId) and zoneDir.ZoneNumber > bestZoneNumber then bestZoneId = zoneId bestZoneNumber = zoneDir.ZoneNumber end end if state.TargetZoneOverride and ZoneCmds.Owns(state.TargetZoneOverride) then local targetZone = Directory.Zones[state.TargetZoneOverride] if targetZone and targetZone.ZoneNumber and targetZone.ZoneNumber >= bestZoneNumber then return state.TargetZoneOverride end end return bestZoneId end local getZoneCenter local function getClosestOwnedZoneId(root) if not root then return getBestUnlockedZoneId() end local closestZoneId = nil local closestDistance = math.huge for zoneId in pairs(Directory.Zones) do if ZoneCmds.Owns(zoneId) then local center = getZoneCenter(zoneId) if center then local distance = (root.Position - center).Magnitude if distance < closestDistance then closestZoneId = zoneId closestDistance = distance end end end end return closestZoneId or getBestUnlockedZoneId() end local function getBestLoadedOwnedZoneId(maxZoneNumber) local bestZoneId = nil local bestZoneNumber = -math.huge local bestCenter = nil for zoneId, zoneDir in pairs(Directory.Zones) do if zoneDir.ZoneNumber and (not maxZoneNumber or zoneDir.ZoneNumber <= maxZoneNumber) and ZoneCmds.Owns(zoneId) then local center = getZoneCenter(zoneId) if not center then local ok, teleportCFrame = pcall(ZonesUtil.GetTeleportPartLocation, zoneId) if ok and teleportCFrame then if typeof(teleportCFrame) == "CFrame" then center = teleportCFrame.Position + Vector3.new(0, settings.CenterYOffset, 0) elseif typeof(teleportCFrame) == "Vector3" then center = teleportCFrame + Vector3.new(0, settings.CenterYOffset, 0) elseif typeof(teleportCFrame) == "Instance" and teleportCFrame:IsA("BasePart") then center = teleportCFrame.Position + Vector3.new(0, settings.CenterYOffset, 0) end end end if center and zoneDir.ZoneNumber > bestZoneNumber then bestZoneId = zoneId bestZoneNumber = zoneDir.ZoneNumber bestCenter = center end end end return bestZoneId, bestCenter, bestZoneNumber end getZoneCenter = function(zoneId) local okBreakZones, breakZones = pcall(ZonesUtil.GetBreakableZones, zoneId) if not okBreakZones or not breakZones then return nil end local parts = {} local function addPart(instance) if typeof(instance) == "Instance" and instance:IsA("BasePart") then parts[#parts + 1] = instance end end if typeof(breakZones) == "Instance" then if breakZones:IsA("BasePart") then parts[#parts + 1] = breakZones else for _, instance in ipairs(breakZones:GetDescendants()) do addPart(instance) end end elseif type(breakZones) == "table" then for _, entry in pairs(breakZones) do if typeof(entry) == "Instance" then if entry:IsA("BasePart") then parts[#parts + 1] = entry else for _, instance in ipairs(entry:GetDescendants()) do addPart(instance) end end end end end if #parts == 0 then return nil end local minPos = Vector3.new(math.huge, math.huge, math.huge) local maxPos = Vector3.new(-math.huge, -math.huge, -math.huge) for _, instance in ipairs(parts) do local half = instance.Size * 0.5 local low = instance.Position - half local high = instance.Position + half minPos = Vector3.new( math.min(minPos.X, low.X), math.min(minPos.Y, low.Y), math.min(minPos.Z, low.Z) ) maxPos = Vector3.new( math.max(maxPos.X, high.X), math.max(maxPos.Y, high.Y), math.max(maxPos.Z, high.Z) ) end return (minPos + maxPos) * 0.5 + Vector3.new(0, settings.CenterYOffset, 0) end local function getZoneApproachPosition(zoneId, allowTeleportPoint) local center = getZoneCenter(zoneId) if center then return center, true end local ok, teleportLocation = pcall(ZonesUtil.GetTeleportPartLocation, zoneId) if ok and teleportLocation then local position if typeof(teleportLocation) == "CFrame" then position = teleportLocation.Position elseif typeof(teleportLocation) == "Vector3" then position = teleportLocation elseif typeof(teleportLocation) == "Instance" and teleportLocation:IsA("BasePart") then position = teleportLocation.Position end if position then return position + Vector3.new(0, settings.CenterYOffset, 0), false end end return nil, false end local function teleportToPosition(root, zoneId, position, force) local character = LocalPlayer.Character if not character then return false end if not force and state.LastTeleportZone == zoneId and state.LastTeleportPosition then if (root.Position - state.LastTeleportPosition).Magnitude <= settings.RetpDistance then return false end end root.AssemblyLinearVelocity = Vector3.zero root.AssemblyAngularVelocity = Vector3.zero character:PivotTo(CFrame.new(position, position + root.CFrame.LookVector)) state.LastTeleportZone = zoneId state.LastTeleportPosition = position return true end local function moveLoop(generation) while state.Enabled and state.MoveGeneration == generation do if state.Paused then task.wait(settings.MoveInterval) continue end local humanoid, root = getCharacter() local zoneId if state.Mode == "Current" then if not state.TargetZoneOverride then state.TargetZoneOverride = getClosestOwnedZoneId(root) else local okOwns, owns = pcall(ZoneCmds.Owns, state.TargetZoneOverride) if not okOwns or not owns then state.TargetZoneOverride = getClosestOwnedZoneId(root) end end zoneId = state.TargetZoneOverride else zoneId = getBestUnlockedZoneId() end if humanoid and root and zoneId then local center, isCoinCenter = getZoneApproachPosition(zoneId, false) if center then state.CurrentZone = zoneId if teleportToPosition(root, zoneId, center, false) then setStatus(((isCoinCenter and "TP to %s") or "Loading %s"):format(tostring(zoneId))) else setStatus(((isCoinCenter and "At %s") or "Waiting for %s"):format(tostring(zoneId))) end else local targetNumber = Directory.Zones[zoneId] and Directory.Zones[zoneId].ZoneNumber local loadedZoneId, loadedCenter = getBestLoadedOwnedZoneId(targetNumber and (targetNumber - 1) or nil) if loadedZoneId and loadedCenter then state.CurrentZone = loadedZoneId if teleportToPosition(root, loadedZoneId, loadedCenter, false) then setStatus(("Loading path to %s"):format(tostring(zoneId))) else setStatus(("Waiting for %s to load"):format(tostring(zoneId))) end else setStatus(("No loaded farm area for %s"):format(tostring(zoneId))) end end else setStatus("Waiting for character") end task.wait(settings.MoveInterval) end end local function canPurchaseNextZone(nextZone) if not nextZone or not nextZone.Currency then return false end if ZoneCmds.HasCompletedNextZoneQuests and not ZoneCmds.HasCompletedNextZoneQuests() then return false end local price = Balancing.CalcGatePrice(nextZone) return CurrencyCmds.CanAfford(nextZone.Currency, price), price end local function purchaseLoop(generation) while state.Enabled and state.PurchaseGeneration == generation do if state.Paused or state.Mode ~= "Best" then task.wait(settings.PurchaseInterval) continue end local okNext, nextZoneId, nextZone = pcall(ZoneCmds.GetNextZone) if okNext then local now = os.clock() if nextZoneId and nextZone and now - state.LastPurchase >= settings.PurchaseCooldown then local canBuy, price = canPurchaseNextZone(nextZone) if canBuy then state.LastPurchase = now setStatus(("Buying Area %s"):format(tostring(nextZone.ZoneNumber or nextZoneId))) local ok, result = pcall(function() return Network.Invoke("Zones_RequestPurchase", nextZoneId) end) if ok and result ~= false then state.TargetZoneOverride = nextZoneId local _, root = getCharacter() local center = getZoneApproachPosition(nextZoneId, false) if root and center and not state.Paused then teleportToPosition(root, nextZoneId, center, true) end notify("Area", ("Bought Area %s"):format(tostring(nextZone.ZoneNumber or nextZoneId)), 3) end elseif price then setStatus(("Farming for Area %s"):format(tostring(nextZone.ZoneNumber or nextZoneId))) end end end task.wait(settings.PurchaseInterval) end end function Area.SetNotify(callback) state.Notify = callback end function Area.SetMode(mode) state.Mode = mode == "Current" and "Current" or "Best" state.TargetZoneOverride = nil state.LastTeleportZone = nil state.LastTeleportPosition = nil end function Area.SetEnabled(enabled, mode) enabled = enabled == true local oldMode = state.Mode if mode then Area.SetMode(mode) end if state.Enabled == enabled then if enabled and oldMode ~= state.Mode then state.MoveGeneration += 1 local moveGeneration = state.MoveGeneration task.spawn(moveLoop, moveGeneration) state.PurchaseGeneration += 1 if state.Mode == "Best" then local purchaseGeneration = state.PurchaseGeneration task.spawn(purchaseLoop, purchaseGeneration) end end return end state.Enabled = enabled state.MoveGeneration += 1 state.PurchaseGeneration += 1 if enabled then setStatus("Starting") if state.Mode ~= "Current" then state.TargetZoneOverride = nil end state.LastTeleportZone = nil state.LastTeleportPosition = nil local moveGeneration = state.MoveGeneration task.spawn(moveLoop, moveGeneration) if state.Mode == "Best" then local purchaseGeneration = state.PurchaseGeneration task.spawn(purchaseLoop, purchaseGeneration) end else setStatus("Idle") state.TargetZoneOverride = nil state.LastTeleportZone = nil state.LastTeleportPosition = nil end end function Area.SetPaused(value) value = value == true if state.Paused == value then return end state.Paused = value if state.Paused then setStatus("Paused") elseif state.Enabled then setStatus("Resuming") state.LastTeleportZone = nil state.LastTeleportPosition = nil end end function Area.IsPaused() return state.Paused end function Area.IsEnabled() return state.Enabled end function Area.GetStatus() return state.Status end function Area.GetMode() return state.Mode end function Area.SetRetpDistance(distance) settings.RetpDistance = math.clamp(tonumber(distance) or settings.RetpDistance, 10, 120) end function Area.GetCurrentZone() return state.CurrentZone end function Area.GetZoneCenter(zoneId) return getZoneCenter(zoneId) end function Area.TeleportToZone(zoneId, force) local _, root = getCharacter() if not root or not zoneId then return false end local center = getZoneApproachPosition(zoneId, false) if center then state.CurrentZone = zoneId return teleportToPosition(root, zoneId, center, force == true) end local targetNumber = Directory.Zones[zoneId] and Directory.Zones[zoneId].ZoneNumber local loadedZoneId, loadedCenter = getBestLoadedOwnedZoneId(targetNumber and (targetNumber - 1) or nil) if loadedZoneId and loadedCenter then state.CurrentZone = loadedZoneId return teleportToPosition(root, loadedZoneId, loadedCenter, force == true) end return false end return Area end local function loadAreaModule() local env = getgenv and getgenv() if env and env.AxonicPetSim99Area and env.AxonicPetSim99Area.SetEnabled then pcall(function() env.AxonicPetSim99Area.SetEnabled(false) end) end local module = createEmbeddedAreaModule() if env then env.AxonicPetSim99Area = module env.AxonicPetSim99AreaVersion = "tp-best-area-v5" end return module end local Area = loadAreaModule() local ReplicatedStorage = game:GetService("ReplicatedStorage") local Players = game:GetService("Players") local VirtualInputManager = game:GetService("VirtualInputManager") local TeleportService = game:GetService("TeleportService") local HttpService = game:GetService("HttpService") local RunService = game:GetService("RunService") local Library = ReplicatedStorage:WaitForChild("Library", 999999) local Network = require(Library.Client.Network) local Directory = require(Library.Directory) local ZoneFlags = require(Library.Directory.ZoneFlags) local Save = require(Library.Client.Save) local ZoneCmds = require(Library.Client.ZoneCmds) local MapCmds = require(Library.Client.MapCmds) local BreakableCmds = table.clone(require(Library.Client.BreakableCmds)) BreakableCmds.Frontend = require(Library.Client.BreakableFrontend) BreakableCmds.Signal = require(Library.Signal) BreakableCmds.Instancing = require(Library.Client.InstancingCmds) local FruitCmds = require(Library.Client.FruitCmds) local HatchingCmds = require(Library.Client.HatchingCmds) local EggCmds = require(Library.Client.EggCmds) local function safeClientRequire(name) local module = Library.Client:FindFirstChild(name) if not module then return nil end local ok, result = pcall(require, module) return ok and result or nil end local PromptCmds = safeClientRequire("ProximityPrompt") local InteractCmds = safeClientRequire("Interact") local UltimateCmds = require(Library.Client.UltimateCmds) local PotionCmds = require(Library.Client.PotionCmds) local FlexibleFlagCmds = safeClientRequire("FlexibleFlagCmds") local Items = require(Library.Items) local MiscItem = require(Library.Items.MiscItem) local Balancing = require(Library.Balancing) local CurrencyCmds = require(Library.Client.CurrencyCmds) local RanksUtil = require(Library.Util.RanksUtil) local EggsUtil = require(Library.Util.EggsUtil) local HatchingTypes = require(Library.Types.Hatching) local QuestTypes = require(Library.Types.Quests) local BreakableTypes = require(Library.Types.Breakables) local automation = { RunId = 0, AutoArea = false, CurrentArea = false, AutoTapBreakables = false, ClaimRankRewards = false, AutoRank = false, ClaimFreeGifts = false, FlagPlacing = false, AutoUltimate = false, AutoHatchBestEgg = false, SelectedFlag = "Hasty Flag", TargetPriority = "Nearest", HatchAmount = 1, RankHatching = false, EventMovement = false, UpgradeMovement = false, } do Env.AxonicPetSim99AutomationRunId = (Env.AxonicPetSim99AutomationRunId or 0) + 1 automation.RunId = Env.AxonicPetSim99AutomationRunId end local function updateAreaPause() Area.SetPaused( automation.AutoHatchBestEgg or automation.RankHatching or automation.EventMovement or automation.UpgradeMovement or automation.FlagPlacing ) end local function getCharacterRoot() local character = game.Players.LocalPlayer.Character return character and character:FindFirstChild("HumanoidRootPart") end local function getBestUnlockedZoneId() local bestZoneId = Area.GetCurrentZone() local bestZoneNumber = -math.huge for zoneId, zoneDir in pairs(Directory.Zones) do if zoneDir.ZoneNumber and zoneDir.ZoneNumber > bestZoneNumber then local ok, owns = pcall(ZoneCmds.Owns, zoneId) if ok and owns then bestZoneId = zoneId bestZoneNumber = zoneDir.ZoneNumber end end end return bestZoneId, bestZoneNumber end local function getItemAmount(item) local ok, amount = pcall(item.GetAmount, item) return ok and amount or 1 end local function getCurrencyAmount(currencyId) local ok, amount = pcall(CurrencyCmds.Get, currencyId) return ok and amount or 0 end local function findExactItem(itemFactory, itemName) local ok, template = pcall(function() return itemFactory(itemName) end) if not ok or not template then return nil end local stacks = template:FindExact() for _, item in pairs(stacks or {}) do if getItemAmount(item) > 0 then return item end end return nil end local function getBestZoneForActions() return MapCmds.GetCurrentZone() or Area.GetCurrentZone() or getBestUnlockedZoneId() end function BreakableCmds.Record(model) if typeof(model) ~= "Instance" or not model.Parent then return nil end local uid = model:GetAttribute("BreakableUID") if type(uid) ~= "string" then return nil end local record = BreakableCmds.Frontend.Get(uid) if not record or record.model ~= model then return nil end return record end function BreakableCmds.Eligible(model) local data = BreakableCmds.Record(model) if not data or data.disableDamage or (data.dir and (data.dir.NoTapping or data.dir.ManualDamage)) then return nil end if model:GetAttribute("ManualDamage") or model:GetAttribute("DisableDamage") then return nil end local owner = data.modifier and data.modifier.Owner or model:GetAttribute("OwnerUsername") if owner and owner ~= Players.LocalPlayer.Name then return nil end if tonumber(data.health) and data.health <= 0 then return nil end if model:GetAttribute("VIPBreakable") then return nil end if data.parentType == BreakableTypes.ParentType.Zone then if data.parentID ~= MapCmds.GetCurrentZone() or not ZoneCmds.Owns(data.parentID) then return nil end elseif data.parentType == BreakableTypes.ParentType.Instance then if not BreakableCmds.Instancing.IsInInstance(data.parentID) then return nil end else return nil end local root = getCharacterRoot() if not root then return nil end local config = BreakableCmds.Instancing.GetInstanceConfig() local reach = config and config.MaxClickDistance or 220 if (model:GetPivot().Position - root.Position).Magnitude > reach then return nil end return data end function BreakableCmds.Tap(model) local data = BreakableCmds.Eligible(model) if not data then return false end if os.clock() - (BreakableCmds.LastTap or -math.huge) < 0.13 then return false end BreakableCmds.LastTap = os.clock() BreakableCmds.Signal.Fire("AutoClicker_Nearby", data.uid) return true end local collectZoneBreakables local function getNearestBreakable(zoneId) local root = getCharacterRoot() if not root then return nil end local candidates = {} local preferred = {} local priority = automation.TargetPriority for _, model in ipairs(collectZoneBreakables(zoneId)) do local data = BreakableCmds.Eligible(model) if data then local id = tostring(data.id or ""):lower() local distance = (model:GetPivot().Position - root.Position).Magnitude local hp = tonumber(data.health) or math.huge local entry = {model = model, distance = distance, hp = hp} candidates[#candidates + 1] = entry if (priority == "Diamonds" and (id:find("diamond", 1, true) or id:find("gem", 1, true))) or (priority == "Chests" and (data.class == "Chest" or id:find("chest", 1, true))) then preferred[#preferred + 1] = entry end end end local pool = #preferred > 0 and preferred or candidates local best, score for _, entry in ipairs(pool) do local value = entry.distance if entry.hp ~= math.huge then if priority == "Highest HP" then value = -entry.hp + entry.distance * 0.000001 elseif priority == "Lowest HP" then value = entry.hp + entry.distance * 0.000001 end end if not best or value < score then best, score = entry.model, value end end return best end collectZoneBreakables = function(zoneId) local results, seen = {}, {} local function add(pool) for _, model in pairs(pool or {}) do if typeof(model) == "Instance" and model.Parent and not seen[model] then seen[model] = true results[#results + 1] = model end end end if BreakableCmds.Instancing.IsInInstance() then add(BreakableCmds.AllByInstanceAndClasses("Normal", "Chest")) elseif zoneId then add(BreakableCmds.AllByZoneAndClass(zoneId, "Normal")) add(BreakableCmds.AllByZoneAndClass(zoneId, "Chest")) end return results end local function modelPosition(model) if not model or not model.Parent then return nil end if model:IsA("BasePart") then return model.Position end if model:IsA("Model") then return model:GetPivot().Position end return nil end local function claimRankRewards() local save = Save.Get() if not save then return false end local rankId = RanksUtil.RankIDFromNumber(save.Rank) local rankDir = rankId and Directory.Ranks[rankId] if not rankDir or type(rankDir.Rewards) ~= "table" then return false end local entries = {} for index, reward in pairs(rankDir.Rewards) do if type(reward) == "table" then entries[#entries + 1] = { Index = index, Reward = reward, } end end table.sort(entries, function(a, b) local an = tonumber(a.Index) local bn = tonumber(b.Index) if an and bn then return an < bn end return tostring(a.Index) < tostring(b.Index) end) local redeemed = save.RedeemedRankRewards or {} local earnedStars = 0 local claimed = false local function redeemedAlready(index) return redeemed[index] == true or redeemed[tostring(index)] == true or table.find(redeemed, index) ~= nil or table.find(redeemed, tostring(index)) ~= nil end for _, entry in ipairs(entries) do earnedStars += tonumber(entry.Reward.StarsRequired) or 0 if earnedStars <= (tonumber(save.RankStars) or 0) and not redeemedAlready(entry.Index) then local ok = pcall(Network.Fire, "Ranks_ClaimReward", entry.Index) if ok then claimed = true task.wait(0.12) end end end return claimed end local function claimFreeGifts() local save = Save.Get() if not save then return false end local redeemed = save.FreeGiftsRedeemed or {} local claimed = false local function alreadyRedeemed(giftId) return redeemed[giftId] == true or redeemed[tostring(giftId)] == true or table.find(redeemed, giftId) ~= nil or table.find(redeemed, tostring(giftId)) ~= nil end local entries = {} for giftId, giftDir in pairs(Directory.FreeGifts or {}) do entries[#entries + 1] = { Id = giftId, Data = giftDir, } end table.sort(entries, function(a, b) return (tonumber(a.Data.WaitTime) or math.huge) < (tonumber(b.Data.WaitTime) or math.huge) end) for _, entry in ipairs(entries) do local waitTime = tonumber(entry.Data.WaitTime) if waitTime and (tonumber(save.FreeGiftsTime) or 0) >= waitTime and not alreadyRedeemed(entry.Id) then local ok, result = pcall(Network.Invoke, "Redeem Free Gift", entry.Id) if ok and result ~= false then claimed = true task.wait(0.12) end end end return claimed end local function useAnyFruitForRank(goal) for _, fruit in pairs(Items.Fruit:All() or {}) do local okId, fruitId = pcall(fruit.GetId, fruit) if goal and goal.FruitID and (not okId or fruitId ~= goal.FruitID) then continue end local okUid, uid = pcall(fruit.GetUID, fruit) if okUid and uid then local okMax, maxConsume = pcall(FruitCmds.GetMaxConsume, uid) local remaining = goal and math.max(0, (tonumber(goal.Amount) or 0) - (tonumber(goal.Progress) or 0)) or math.huge local amount = math.min(getItemAmount(fruit), tonumber(maxConsume) or 0, remaining) if okMax and amount > 0 then local ok = pcall(FruitCmds.Consume, uid, amount) if ok then return true end end end end return false end local function useAnyPotionForRank(goal) for _, potion in pairs(Items.Potion:All() or {}) do local okId, potionId = pcall(potion.GetId, potion) local okTier, potionTier = pcall(potion.GetTier, potion) if goal and ((goal.PotionID and (not okId or potionId ~= goal.PotionID)) or (goal.PotionTier and (not okTier or potionTier ~= goal.PotionTier))) then continue end local okUid, uid = pcall(potion.GetUID, potion) if okUid and uid then local ok = pcall(PotionCmds.Consume, uid, 1) if ok then return true end end end return false end local stopAutoHatching local function placeSelectedFlag() local flagId = automation.SelectedFlag if not FlexibleFlagCmds or not flagId or not rawget(ZoneFlags, flagId) then return false end local flag = findExactItem(MiscItem, flagId) if not flag then return false end local instanceInfo = MapCmds.GetCurrentInstanceInfo() local parentType, parentId, areaId if instanceInfo then parentType = BreakableTypes.ParentType.Instance parentId = instanceInfo.InstanceId areaId = instanceInfo.AreaId else parentType = BreakableTypes.ParentType.Zone parentId = MapCmds.GetCurrentZone() end if not parentId then return false end if not instanceInfo and not MapCmds.IsInDottedBox() then local targetZone = parentId if not targetZone or not ZoneCmds.Owns(targetZone) then targetZone = getBestUnlockedZoneId() end if not targetZone then return false end local okMove, moved = pcall(function() local okTeleport, teleportResult = pcall(Area.TeleportToZone, targetZone, true) if not okTeleport or teleportResult == false then return false end for _ = 1, 150 do local currentZone = MapCmds.GetCurrentZone() if currentZone and MapCmds.IsInDottedBox() then parentId = currentZone return true end task.wait(0.1) end return false end) if not okMove or not moved then return false end end if not instanceInfo and not MapCmds.IsInDottedBox() then return false end local active = FlexibleFlagCmds.GetActiveFlag(parentType, parentId, areaId) if active then return false end local okPlace, maxPlace = pcall(FlexibleFlagCmds.GetMaxPlaceAutomaticContext, flagId) if not okPlace or (tonumber(maxPlace) or 0) < 1 then return false end local okUid, uid = pcall(flag.GetUID, flag) if not okUid or not uid then return false end local ok, placed = pcall(FlexibleFlagCmds.Consume, flagId, uid, 1) return ok and placed == true end local function useSelectedFlag() if automation.FlagPlacing then return false end automation.FlagPlacing = true updateAreaPause() if stopAutoHatching then pcall(stopAutoHatching) end local ok, placed = pcall(placeSelectedFlag) automation.FlagPlacing = false updateAreaPause() return ok and placed == true end local function activateUltimate() local ok, item = pcall(UltimateCmds.GetEquippedItem) if not ok or not item then return end local okId, ultimateId = pcall(item.GetId, item) if not okId or not ultimateId then return end if UltimateCmds.IsCharged(ultimateId) then pcall(UltimateCmds.Activate, ultimateId) end end local function getBestEgg() local save = Save.Get() if not save then return nil, nil end local bestEgg = nil local bestEggId = nil local bestNumber = -math.huge for eggId, eggDir in pairs(Directory.Eggs or {}) do local eggNumber = tonumber(eggDir.eggNumber) if eggNumber and eggNumber > bestNumber and eggNumber <= (tonumber(save.MaximumAvailableEgg) or eggNumber) then local ok, unlocked = pcall(EggCmds.IsUnlocked, eggId) if ok and unlocked and eggDir.currency then bestEgg = eggDir bestEggId = eggId bestNumber = eggNumber end end end return bestEgg, bestEggId end local function getBestRankEgg() local save = Save.Get() if not save then return nil, nil end local maximum = tonumber(save.MaximumAvailableEgg) local bestEgg = nil local bestEggId = nil local bestNumber = -math.huge for eggId, eggDir in pairs(Directory.Eggs or {}) do local eggNumber = tonumber(eggDir.eggNumber) if eggNumber and eggDir.currency and eggNumber > bestNumber and (maximum == nil or eggNumber <= maximum) then bestEgg = eggDir bestEggId = eggId bestNumber = eggNumber end end return bestEgg, bestEggId end local function instancePosition(object) if not object then return nil end if object:IsA("BasePart") then return object.Position end local model = object:IsA("Model") and object or object:FindFirstAncestorOfClass("Model") if model then local ok, pivot = pcall(model.GetPivot, model) if ok and pivot then return pivot.Position end end local part = object:FindFirstAncestorWhichIsA("BasePart") or object:FindFirstChildWhichIsA("BasePart", true) return part and part.Position or nil end local function moveNearEgg(egg) if not egg then return nil end local eggPart = EggsUtil.GetEggPart(egg.eggNumber) if not eggPart then local bestZone = getBestUnlockedZoneId() if bestZone then Area.TeleportToZone(bestZone, false) task.wait(0.3) eggPart = EggsUtil.GetEggPart(egg.eggNumber) end end local root = getCharacterRoot() local character = Players.LocalPlayer.Character if eggPart and root and character then local position = eggPart.Position + Vector3.new(0, 3.5, -7) if (root.Position - position).Magnitude > 10 then root.AssemblyLinearVelocity = Vector3.zero root.AssemblyAngularVelocity = Vector3.zero character:PivotTo(CFrame.new(position, eggPart.Position)) task.wait(0.25) end end return eggPart end local function promptWorldPosition(prompt) if not prompt or not prompt.Parent then return nil end return instancePosition(prompt.Parent) end local function activeUnlockPrompt(eggPart) local root = getCharacterRoot() if not root then return nil end local eggPosition = eggPart and eggPart.Position or root.Position local best local bestScore = -math.huge for _, prompt in ipairs(workspace:GetDescendants()) do if prompt:IsA("ProximityPrompt") and prompt.Enabled then local position = promptWorldPosition(prompt) if position then local playerDistance = (root.Position - position).Magnitude local eggDistance = (eggPosition - position).Magnitude local allowed = math.max(tonumber(prompt.MaxActivationDistance) or 10, 12) + 5 if playerDistance <= allowed and eggDistance <= 40 then local text = string.lower( tostring(prompt.ActionText or "") .. " " .. tostring(prompt.ObjectText or "") .. " " .. tostring(prompt.Name or "") ) local score = 150 - playerDistance if prompt.KeyboardKeyCode == Enum.KeyCode.E then score += 100 end if string.find(text, "unlock", 1, true) then score += 160 end if string.find(text, "egg", 1, true) then score += 50 end if string.find(text, "interact", 1, true) then score += 30 end if score > bestScore then bestScore = score best = prompt end end end end end return best end local function invokeModuleCandidates(module, names, argumentSets) if type(module) ~= "table" then return false end local attempted = false for _, name in ipairs(names) do local fn = module[name] if type(fn) == "function" then for _, args in ipairs(argumentSets) do attempted = true pcall(fn, table.unpack(args)) pcall(fn, module, table.unpack(args)) end end end return attempted end local function activatePromptThroughModules(prompt) if not prompt then return false end local args = { {prompt}, {prompt, Players.LocalPlayer}, {prompt.Parent}, } local attempted = invokeModuleCandidates( PromptCmds, { "Activate", "Trigger", "Fire", "Interact", "Use", "Press", }, args ) attempted = invokeModuleCandidates( InteractCmds, { "Activate", "Trigger", "Fire", "Interact", "Use", }, args ) or attempted return attempted end local function activateUnlockPrompt(prompt) if not prompt or not prompt:IsA("ProximityPrompt") or not prompt.Enabled then return false end local fired = activatePromptThroughModules(prompt) if type(fireproximityprompt) == "function" then local hold = math.max(tonumber(prompt.HoldDuration) or 0, 0) if pcall(fireproximityprompt, prompt, hold, true) then fired = true elseif pcall(fireproximityprompt, prompt) then fired = true end end if type(getconnections) == "function" then local ok, connections = pcall(getconnections, prompt.Triggered) if ok and type(connections) == "table" then for _, connection in ipairs(connections) do if type(connection.Function) == "function" then pcall(connection.Function, Players.LocalPlayer) fired = true elseif type(connection.Fire) == "function" then pcall(connection.Fire, connection, Players.LocalPlayer) fired = true end end end end local key = prompt.KeyboardKeyCode local ok = pcall(function() prompt:InputHoldBegin() if key and key ~= Enum.KeyCode.Unknown then VirtualInputManager:SendKeyEvent(true, key, false, game) end task.wait(math.max(0.15, math.min(tonumber(prompt.HoldDuration) or 0, 0.45))) if key and key ~= Enum.KeyCode.Unknown then VirtualInputManager:SendKeyEvent(false, key, false, game) end prompt:InputHoldEnd() end) return ok or fired end local function ensureRankEggUnlocked(egg, eggId) if not egg or not eggId then return false end local function unlocked() local ok, value = pcall(EggCmds.IsUnlocked, eggId) return ok and value == true end if unlocked() then return true end if stopAutoHatching then stopAutoHatching() end for attempt = 1, 6 do if not automation.AutoRank then return false end local eggPart = moveNearEgg(egg) if not eggPart then task.wait(0.25) continue end task.wait(0.2) local okRequest, result = pcall(EggCmds.RequestUnlock, eggId) if okRequest and result ~= false then local started = os.clock() while automation.AutoRank and os.clock() - started < 1.5 do if unlocked() then task.wait(0.15) return true end task.wait(0.08) end end local prompt = activeUnlockPrompt(eggPart) if prompt then activateUnlockPrompt(prompt) local started = os.clock() while automation.AutoRank and os.clock() - started < 1 do if unlocked() then task.wait(0.15) return true end task.wait(0.08) end end if attempt < 6 then task.wait(0.2) end end return false end local hatchBlockedCurrency = nil local hatchBlockedAmount = nil local hatchBlockedUntil = 0 local rankHatchLastAttempt = 0 local activeHatchSignature = nil stopAutoHatching = function() activeHatchSignature = nil pcall(function() if HatchingCmds.Disable then HatchingCmds.Disable(HatchingTypes.Options.AUTO) end end) pcall(function() if HatchingCmds.SetEnabled then HatchingCmds.SetEnabled(HatchingTypes.Options.AUTO, false) end end) end local function visibleTextContains(needle) local pg = Players.LocalPlayer:FindFirstChildOfClass("PlayerGui") if not pg then return false end needle = string.lower(needle) for _, obj in ipairs(pg:GetDescendants()) do if (obj:IsA("TextLabel") or obj:IsA("TextButton")) and obj.Visible and type(obj.Text) == "string" and string.find(string.lower(obj.Text), needle, 1, true) then return true end end return false end local function hatchBestEgg(fromRank, requestedEggId) if automation.FlagPlacing or (not fromRank and automation.RankHatching) then return false end if fromRank then if not automation.AutoRank then return false end elseif not automation.AutoHatchBestEgg then stopAutoHatching() return false end local egg, eggId if fromRank then if requestedEggId then eggId = requestedEggId egg = Directory.Eggs[eggId] else egg, eggId = getBestRankEgg() end else egg, eggId = getBestEgg() end if not egg then return false end if fromRank then if not ensureRankEggUnlocked(egg, eggId) then return false end end local currencyId = egg.currency and (egg.currency._id or egg.currency.id or egg.currency) or nil local currentCurrency = currencyId and getCurrencyAmount(currencyId) or nil if hatchBlockedCurrency == currencyId and hatchBlockedAmount ~= nil and currentCurrency ~= nil and currentCurrency <= hatchBlockedAmount and os.clock() < hatchBlockedUntil then return false end if currentCurrency and hatchBlockedAmount and currentCurrency > hatchBlockedAmount then hatchBlockedCurrency = nil hatchBlockedAmount = nil hatchBlockedUntil = 0 end local eggPart = moveNearEgg(egg) if not eggPart then return false end if fromRank then if not automation.AutoRank then return false end elseif not automation.AutoHatchBestEgg then stopAutoHatching() return false end local amount = automation.HatchAmount if amount == "Max" then local okMax, maxAmount = pcall(EggCmds.GetMaxHatch, egg) amount = okMax and maxAmount or 1 end local okLimit, limit = pcall(EggCmds.GetMaxHatch, egg) amount = math.clamp(math.floor(tonumber(amount) or 1), 1, math.max(1, okLimit and tonumber(limit) or 1)) local signature = tostring(egg.eggNumber) .. ":" .. tostring(amount) local ok = true if activeHatchSignature ~= signature then ok = pcall(function() HatchingCmds.Enable(HatchingTypes.Options.AUTO) HatchingCmds.SetupEgg(egg, amount) HatchingCmds.AttemptHatch() end) if ok then activeHatchSignature = signature end else ok = pcall(function() HatchingCmds.Enable(HatchingTypes.Options.AUTO) end) end task.wait(0.25) if visibleTextContains("need more coins to buy this egg") or visibleTextContains("auto hatch has stopped") then stopAutoHatching() hatchBlockedCurrency = currencyId hatchBlockedAmount = currentCurrency hatchBlockedUntil = os.clock() + 20 return false end return ok end local rankGoalState = {} local rankSelectedGoal = nil local rankLastNumber = nil local rankLastClaim = 0 local function rankGoalPriority(goal) local kind = goal.Type local types = QuestTypes.Goals if kind == types.USE_FRUIT or kind == types.USE_POTION or kind == types.USE_FLAG then return 1 end if kind == types.FREE_GIFT then return 2 end if kind == types.BREAKABLE or kind == types.CURRENT_BREAKABLE or kind == types.DIAMOND_BREAKABLE or kind == types.MINI_CHEST or kind == types.COLLECT_POTION or kind == types.COLLECT_ENCHANT or kind == types.COLLECT_FRUIT or kind == types.COLLECT_LOOTBAG or kind == types.CURRENCY or kind == types.OBTAIN_CURRENCY then return 3 end if kind == types.BEST_EGG or kind == types.EGG then return 4 end return nil end local function chooseRankGoal(save) local now = os.clock() local best, bestPriority, bestRemaining, current for _, goal in pairs(save.Goals or {}) do if type(goal) == "table" and tonumber(goal.Progress) and tonumber(goal.Amount) and goal.Progress < goal.Amount then local priority = rankGoalPriority(goal) if priority then local key = tostring(goal.UID or goal) local state = rankGoalState[key] if not state then state = { Progress = goal.Progress, ChangedAt = now, SkipUntil = 0 } rankGoalState[key] = state elseif state.Progress ~= goal.Progress then state.Progress = goal.Progress state.ChangedAt = now state.SkipUntil = 0 elseif key == rankSelectedGoal and now - state.ChangedAt > (priority == 4 and 35 or 18) then state.SkipUntil = now + 25 state.ChangedAt = now end if now >= state.SkipUntil then if key == rankSelectedGoal then current = goal end local remaining = goal.Amount - goal.Progress if not best or priority < bestPriority or (priority == bestPriority and remaining < bestRemaining) then best, bestPriority, bestRemaining = goal, priority, remaining end end end end end return current or best end local function rankBreakableMatches(goal, breakable) local identity = string.lower(table.concat({ tostring(breakable.Name or ""), tostring(breakable:GetAttribute("BreakableID") or ""), tostring(breakable:GetAttribute("Type") or ""), tostring(breakable:GetAttribute("Currency") or ""), }, " ")) local types = QuestTypes.Goals if goal.Type == types.DIAMOND_BREAKABLE then return identity:find("diamond", 1, true) or identity:find("gem", 1, true) end if goal.Type == types.MINI_CHEST then return identity:find("mini chest", 1, true) or identity:find("minichest", 1, true) end if goal.BreakableDirID then return identity:find(string.lower(tostring(goal.BreakableDirID)), 1, true) ~= nil end if goal.BreakableType then return identity:find(string.lower(tostring(goal.BreakableType)), 1, true) ~= nil end return true end local function getRankBreakable(goal, zoneId) if not zoneId then return nil end if not goal.BreakableType and not goal.BreakableDirID and goal.Type ~= QuestTypes.Goals.DIAMOND_BREAKABLE and goal.Type ~= QuestTypes.Goals.MINI_CHEST then return getNearestBreakable(zoneId) end local root = getCharacterRoot() if not root then return nil end local best, bestDistance for _, model in ipairs(collectZoneBreakables(zoneId)) do if BreakableCmds.Eligible(model) and rankBreakableMatches(goal, model) then local position = modelPosition(model) if position then local distance = (position - root.Position).Magnitude if not bestDistance or distance < bestDistance then best, bestDistance = model, distance end end end end return best end local function doAutoRank() local save = Save.Get() if not automation.AutoRank or not save then if automation.RankHatching then stopAutoHatching() end automation.RankHatching = false rankSelectedGoal = nil updateAreaPause() return end if rankLastNumber ~= save.Rank then rankLastNumber = save.Rank rankGoalState = {} rankSelectedGoal = nil end if os.clock() - rankLastClaim >= 3 then rankLastClaim = os.clock() claimRankRewards() end local goal = chooseRankGoal(save) local selected = goal and tostring(goal.UID or goal) or nil if selected and selected ~= rankSelectedGoal then rankGoalState[selected].ChangedAt = os.clock() end local isHatch = goal and (goal.Type == QuestTypes.Goals.BEST_EGG or goal.Type == QuestTypes.Goals.EGG) or false if automation.RankHatching and not isHatch then stopAutoHatching() end rankSelectedGoal = selected automation.RankHatching = isHatch updateAreaPause() if not goal then return end local types = QuestTypes.Goals if goal.Type == types.USE_FRUIT then if not useAnyFruitForRank(goal) then rankGoalState[selected].SkipUntil = os.clock() + 12 end elseif goal.Type == types.USE_POTION then if not useAnyPotionForRank(goal) then rankGoalState[selected].SkipUntil = os.clock() + 12 end elseif goal.Type == types.USE_FLAG then local wanted = goal.FlagID or goal.FlagId if (wanted and wanted ~= automation.SelectedFlag) or not useSelectedFlag() then rankGoalState[selected].SkipUntil = os.clock() + 12 end elseif goal.Type == types.FREE_GIFT then if not claimFreeGifts() then rankGoalState[selected].SkipUntil = os.clock() + 12 end elseif isHatch then if os.clock() - rankHatchLastAttempt >= 2.5 then rankHatchLastAttempt = os.clock() if not hatchBestEgg(true, goal.EggID) then rankGoalState[selected].SkipUntil = os.clock() + 12 end end else local zoneId = goal.Type == types.CURRENT_BREAKABLE and getBestUnlockedZoneId() or getBestZoneForActions() if zoneId and (not Area.IsEnabled() or goal.Type == types.CURRENT_BREAKABLE) then pcall(Area.TeleportToZone, zoneId, false) end local breakable = getRankBreakable(goal, zoneId) if breakable and automation.AutoRank then BreakableCmds.Tap(breakable) else rankGoalState[selected].SkipUntil = os.clock() + 8 end end end local loopErrors = {} local function startAutomationLoop(flagName, interval, callback) local runId = automation.RunId task.spawn(function() while true do if Env.AxonicPetSim99AutomationRunId ~= runId then break end if automation[flagName] then local ok, err = pcall(callback) if not ok then local now = os.clock() if not loopErrors[flagName] or now - loopErrors[flagName] > 10 then loopErrors[flagName] = now warn(("[Axonic PS99][%s] %s"):format(flagName, tostring(err))) end end task.wait(interval) else task.wait(0.2) end end end) end local LocalPlayer = Players.LocalPlayer local UIS = game:GetService("UserInputService") local env = Env local Gui, MainGui, HubGui, ClosePopup, GameGui local Connections = {} local statusText = "Ready" Area.SetNotify(function(_, description) statusText = description end) local function make(class, props, parent) local obj = Instance.new(class) for k, v in pairs(props) do obj[k] = v end obj.Parent = parent return obj end local function connect(signal, callback) local c = signal:Connect(callback) table.insert(Connections, c) return c end local theme = { Window = Color3.fromRGB(13, 13, 15), Header = Color3.fromRGB(17, 17, 20), Card = Color3.fromRGB(20, 20, 24), Button = Color3.fromRGB(22, 22, 26), Hover = Color3.fromRGB(29, 30, 35), Border = Color3.fromRGB(40, 41, 47), BorderBright = Color3.fromRGB(64, 66, 75), Text = Color3.fromRGB(242, 243, 246), Muted = Color3.fromRGB(156, 158, 167), Faint = Color3.fromRGB(98, 100, 109), Active = Color3.fromRGB(118, 121, 136), } local function round(obj, n) make("UICorner", {CornerRadius = UDim.new(0, n)}, obj) end local function outline(obj, color, transparency) make("UIStroke", {Color = color or theme.Border, Thickness = 1, Transparency = transparency or .27}, obj) end local function label(parent, text, x, y, w, h, size, color, font) return make("TextLabel", { Position = UDim2.fromOffset(x,y), Size = UDim2.fromOffset(w,h), BackgroundTransparency = 1, Text = text, TextSize = size, TextColor3 = color or theme.Text, Font = font or Enum.Font.Gotham, TextXAlignment = Enum.TextXAlignment.Left, }, parent) end local function button(parent, text, x, y, w, h) local b = make("TextButton", { Position = UDim2.fromOffset(x,y), Size = UDim2.fromOffset(w,h), BackgroundColor3 = theme.Button, BorderSizePixel = 0, AutoButtonColor = false, Text = text, Font = Enum.Font.GothamMedium, TextSize = 12, TextColor3 = theme.Text, }, parent) round(b,3) outline(b) b.MouseEnter:Connect(function() b.BackgroundColor3 = theme.Hover end) b.MouseLeave:Connect(function() b.BackgroundColor3 = theme.Button end) return b end local function startupScale(viewport) return math.min(1, math.max(.12, math.min((viewport.X-48)/1226, (viewport.Y-32)/455))) end local function mainWindow() local parent = LocalPlayer:WaitForChild("PlayerGui") local old = parent:FindFirstChild("AxonicPS99OpenSource") if old then old:Destroy() end local gui = make("ScreenGui", {Name="AxonicPS99OpenSource", IgnoreGuiInset=true, ResetOnSpawn=false, DisplayOrder=102}, parent) MainGui = gui local panel = make("Frame", {AnchorPoint=Vector2.new(.5,.5), Position=UDim2.new(0,176,.5,0), Size=UDim2.fromOffset(320,455), BackgroundColor3=theme.Window, BorderSizePixel=0},gui) round(panel,7) outline(panel,theme.BorderBright) local scale=make("UIScale",{Scale=1},panel) local header=make("Frame",{Size=UDim2.new(1,0,0,49),BackgroundColor3=theme.Header,BorderSizePixel=0},panel) round(header,7) label(header,"Axonic",15,6,220,20,15,theme.Text,Enum.Font.GothamBold) label(header,"PET SIMULATOR 99 / Open Source",15,26,245,13,10,theme.Muted) button(header,"×",280,11,27,27).Activated:Connect(function() gui.Enabled=false end) local drag=make("TextButton",{Size=UDim2.new(1,-48,1,0),BackgroundTransparency=1,Text="",Active=true},header) local origin, start, touch drag.InputBegan:Connect(function(input) if input.UserInputType~=Enum.UserInputType.MouseButton1 and input.UserInputType~=Enum.UserInputType.Touch then return end origin=input.Position start=panel.AbsolutePosition+panel.AbsoluteSize/2 touch=input.UserInputType==Enum.UserInputType.Touch and input or nil end) local function clampPanel(x,y) local viewport=workspace.CurrentCamera and workspace.CurrentCamera.ViewportSize if not viewport then return end local half=panel.AbsoluteSize/2 panel.Position=UDim2.fromOffset(math.clamp(x,math.min(half.X,viewport.X/2),math.max(viewport.X-half.X,viewport.X/2)),math.clamp(y,math.min(half.Y,viewport.Y/2),math.max(viewport.Y-half.Y,viewport.Y/2))) end connect(UIS.InputChanged,function(input) if not origin or (input.UserInputType~=Enum.UserInputType.MouseMovement and input~=touch) then return end local d=input.Position-origin clampPanel(start.X+d.X,start.Y+d.Y) end) connect(UIS.InputEnded,function(input) if input==touch or input.UserInputType==Enum.UserInputType.MouseButton1 then origin=nil; touch=nil end end) connect(UIS.InputBegan,function(input,processed) if not processed and input.KeyCode==Enum.KeyCode.RightShift then gui.Enabled=not gui.Enabled end end) local function row(y) local f=make("Frame",{Position=UDim2.fromOffset(15,y),Size=UDim2.fromOffset(290,32),BackgroundColor3=theme.Card,BorderSizePixel=0},panel) round(f,3); outline(f) return f end local switches={} local function refresh() for field,parts in pairs(switches) do local enabled=automation[field]==true parts[1].BackgroundColor3=enabled and theme.Active or theme.Button parts[2].BackgroundColor3=enabled and theme.Text or theme.Muted parts[2].Position=UDim2.fromOffset(enabled and 20 or 3,3) end end local function toggle(y,name,field,callback) local f=row(y) label(f,name,12,0,220,32,12,theme.Text,Enum.Font.GothamMedium) local sw=make("TextButton",{Position=UDim2.fromOffset(243,7),Size=UDim2.fromOffset(35,18),BackgroundColor3=theme.Button,Text="",AutoButtonColor=false,BorderSizePixel=0},f) round(sw,9); outline(sw,theme.BorderBright) local dot=make("Frame",{Position=UDim2.fromOffset(3,3),Size=UDim2.fromOffset(12,12),BackgroundColor3=theme.Muted,BorderSizePixel=0},sw) round(dot,6); switches[field]={sw,dot} sw.Activated:Connect(function() automation[field]=not automation[field] if callback then callback(automation[field]) end refresh() end) end label(panel,"PROGRESS",15,57,250,14,10,theme.Faint,Enum.Font.GothamBold) toggle(76,"Auto Area","AutoArea",function(on) if on then automation.CurrentArea=false; Area.SetEnabled(true,"Best") elseif not automation.CurrentArea then Area.SetEnabled(false) end end) toggle(112,"Current Area","CurrentArea",function(on) if on then automation.AutoArea=false; Area.SetEnabled(true,"Current") elseif not automation.AutoArea then Area.SetEnabled(false) end end) label(panel,"BREAKABLES",15,153,250,14,10,theme.Faint,Enum.Font.GothamBold) toggle(172,"Auto Tap Breakables","AutoTapBreakables") local target=row(208) label(target,"Target",12,0,130,32,12) local choice=button(target,automation.TargetPriority,159,4,119,24) local menu=make("Frame",{Position=UDim2.fromOffset(174,240),Size=UDim2.fromOffset(119,128),BackgroundColor3=theme.Window,BorderSizePixel=0,Visible=false,ZIndex=20},panel) round(menu,4); outline(menu,theme.BorderBright) for i,name in ipairs({"Nearest","Diamonds","Chests","Highest HP","Lowest HP"}) do local item=button(menu,name,3,3+(i-1)*24,113,22) item.ZIndex=21 item.Activated:Connect(function() automation.TargetPriority=name; choice.Text=name; menu.Visible=false end) end choice.Activated:Connect(function() menu.Visible=not menu.Visible end) toggle(244,"Auto Ultimate","AutoUltimate") label(panel,"REWARDS",15,285,250,14,10,theme.Faint,Enum.Font.GothamBold) toggle(304,"Auto Rank","AutoRank",function(on) if not on then doAutoRank() end end) toggle(340,"Claim Rank Rewards","ClaimRankRewards") toggle(376,"Claim Free Gifts","ClaimFreeGifts") local status=label(panel,"Ready",15,420,290,22,10,theme.Muted) status.TextTruncate=Enum.TextTruncate.AtEnd refresh() local elapsed=0 connect(RunService.Heartbeat,function(dt) elapsed+=dt if elapsed<.25 then return end elapsed=0 status.Text=Area.IsEnabled() and Area.GetStatus() or (automation.AutoRank and "Rank tasks active" or automation.AutoTapBreakables and "Auto Tap enabled" or statusText) end) local previous, previousLayout local function fit() local v=workspace.CurrentCamera and workspace.CurrentCamera.ViewportSize if not v or v==previous then return end previous=v local first = previousLayout == nil previousLayout = v scale.Scale=startupScale(v) if first then panel.Position=UDim2.new(0,16+160*scale.Scale,.5,0) else clampPanel(v.X*panel.Position.X.Scale+panel.Position.X.Offset,v.Y*panel.Position.Y.Scale+panel.Position.Y.Offset) end end fit(); connect(RunService.RenderStepped,fit) end local function popup() local parent = LocalPlayer:WaitForChild("PlayerGui") local old = parent:FindFirstChild("AxonicPS99OpenDiscord") if old then old:Destroy() end local gui = Instance.new("ScreenGui") gui.Name = "AxonicPS99OpenDiscord" gui.IgnoreGuiInset = true gui.ResetOnSpawn = false gui.DisplayOrder = 100 gui.Parent = parent Gui = gui local width, height = 360, 372 local panel = make("Frame", { AnchorPoint = Vector2.new(1, .5), Position = UDim2.new(1, -14, .5, 0), Size = UDim2.fromOffset(width, height), BackgroundColor3 = theme.Window, BorderSizePixel = 0, ClipsDescendants = true }, gui) round(panel, 7) outline(panel, theme.BorderBright, .34) local scale = make("UIScale", {Scale = 1}, panel) local header = make("Frame", { Size = UDim2.new(1, 0, 0, 49), BackgroundColor3 = theme.Header, BorderSizePixel = 0 }, panel) round(header, 7) make("Frame", { Position = UDim2.fromOffset(0, 7), Size = UDim2.new(1, 0, 1, -7), BackgroundColor3 = theme.Header, BorderSizePixel = 0 }, header) make("Frame", { Position = UDim2.new(0, 0, 1, -1), Size = UDim2.new(1, 0, 0, 1), BackgroundColor3 = theme.Border, BorderSizePixel = 0 }, header) label(header, "Axonic", 15, 6, 220, 20, 15, theme.Text, Enum.Font.GothamBold) label(header, "PET SIMULATOR 99 / Open Source", 15, 26, 225, 13, 10, theme.Muted) local dragHandle = make("TextButton", { Size = UDim2.new(1, -48, 1, 0), BackgroundTransparency = 1, Text = "", Active = true, AutoButtonColor = false, ZIndex = 2 }, header) local close = make("TextButton", { Position = UDim2.new(1, -40, 0, 11), Size = UDim2.fromOffset(27, 27), BackgroundColor3 = theme.Button, Text = "×", TextSize = 15, Font = Enum.Font.GothamMedium, TextColor3 = theme.Muted, AutoButtonColor = false, BorderSizePixel = 0, ZIndex = 3 }, header) round(close, 3) outline(close, theme.Border, .3) local popupConnections = {} local function popupConnect(signal, callback) local c = signal:Connect(callback) table.insert(popupConnections, c) return c end local function closePopup() for _, c in ipairs(popupConnections) do c:Disconnect() end table.clear(popupConnections) if gui.Parent then gui:Destroy() end if Gui == gui then Gui = nil end if ClosePopup == closePopup then ClosePopup = nil end end ClosePopup = closePopup close.MouseEnter:Connect(function() close.BackgroundColor3 = theme.Hover end) close.MouseLeave:Connect(function() close.BackgroundColor3 = theme.Button end) close.Activated:Connect(closePopup) local dragging = false local dragStart, startPosition, touchInput dragHandle.InputBegan:Connect(function(input) local kind = input.UserInputType if kind ~= Enum.UserInputType.MouseButton1 and kind ~= Enum.UserInputType.Touch then return end dragging = true dragStart = input.Position startPosition = panel.Position touchInput = kind == Enum.UserInputType.Touch and input or nil end) popupConnect(UIS.InputChanged, function(input) if not dragging or not panel.Parent then return end if input.UserInputType ~= Enum.UserInputType.MouseMovement and input ~= touchInput then return end local viewport = workspace.CurrentCamera and workspace.CurrentCamera.ViewportSize if not viewport then return end local delta = input.Position - dragStart local hw, hh = panel.AbsoluteSize.X * .5, panel.AbsoluteSize.Y * .5 local x = viewport.X * startPosition.X.Scale + startPosition.X.Offset + delta.X local y = viewport.Y * startPosition.Y.Scale + startPosition.Y.Offset + delta.Y panel.Position = UDim2.fromOffset( math.clamp(x, math.min(panel.AbsoluteSize.X + 8, viewport.X * .5), math.max(panel.AbsoluteSize.X + 8, viewport.X - 8)), math.clamp(y, math.min(hh + 8, viewport.Y * .5), math.max(viewport.Y - hh - 8, viewport.Y * .5)) ) end) popupConnect(UIS.InputEnded, function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input == touchInput then dragging = false touchInput = nil end end) label(panel, "OPEN-SOURCE SCRIPTS", 15, 59, 220, 14, 10, theme.Faint, Enum.Font.GothamBold) for i, name in ipairs({"Blox Fruits", "Steal An Egg", "Murder Mystery 2", "RIVALS", "Fisch", "Shoot Animals", "Pet Simulator 99"}) do local row = make("Frame", { Position = UDim2.fromOffset(15, 79 + (i - 1) * 33), Size = UDim2.new(1, -30, 0, 29), BackgroundColor3 = theme.Card, BorderSizePixel = 0 }, panel) round(row, 3) outline(row, theme.Border, .27) label(row, name, 13, 0, 285, 29, 12, theme.Text, Enum.Font.GothamMedium) end label(panel, "discord.gg/axonic", 15, 316, 180, 13, 10, theme.Muted) local copy = make("TextButton", { Position = UDim2.fromOffset(15, 336), Size = UDim2.new(1, -30, 0, 28), BackgroundColor3 = theme.Button, BorderSizePixel = 0, Text = "COPY DISCORD", TextSize = 11, TextColor3 = theme.Text, Font = Enum.Font.GothamMedium, AutoButtonColor = false }, panel) round(copy, 4) outline(copy, theme.BorderBright, .3) copy.MouseEnter:Connect(function() copy.BackgroundColor3 = theme.Hover end) copy.MouseLeave:Connect(function() copy.BackgroundColor3 = theme.Button end) copy.Activated:Connect(function() local clipboard = setclipboard or toclipboard local copied = type(clipboard) == "function" and pcall(clipboard, "https://discord.gg/axonic") copy.Text = copied and "COPIED" or "discord.gg/axonic" end) local lastViewport local function fit() local camera = workspace.CurrentCamera local viewport = camera and camera.ViewportSize if not viewport or viewport == lastViewport then return end lastViewport = viewport scale.Scale = startupScale(viewport) if not dragging then panel.Position = UDim2.new(1, -14, .5, 0) end end fit() popupConnect(RunService.RenderStepped, function() if gui.Parent then fit() end end) end local function hubPopup() local parent = LocalPlayer:WaitForChild("PlayerGui") local old = parent:FindFirstChild("AxonicHubPromo") if old then old:Destroy() end local gui = Instance.new("ScreenGui") gui.Name = "AxonicHubPromo" gui.ResetOnSpawn = false gui.DisplayOrder = 101 gui.Parent = parent HubGui = gui local panel = make("Frame", { AnchorPoint = Vector2.new(1, 1), Position = UDim2.new(1, -14, 1, -14), Size = UDim2.new(1, -28, 0, 108), BackgroundColor3 = Color3.fromRGB(13, 13, 15), BorderSizePixel = 0 }, gui) make("UICorner", {CornerRadius = UDim.new(0, 7)}, panel) make("UIStroke", {Color = Color3.fromRGB(64, 66, 75), Transparency = .34}, panel) make("UISizeConstraint", {MaxSize = Vector2.new(264, 108)}, panel) make("TextLabel", { Position = UDim2.fromOffset(12, 8), Size = UDim2.new(1, -48, 0, 21), BackgroundTransparency = 1, Text = "Try Axonic Hub", Font = Enum.Font.GothamBold, TextSize = 14, TextColor3 = Color3.fromRGB(242, 243, 246), TextXAlignment = Enum.TextXAlignment.Left }, panel) make("TextLabel", { Position = UDim2.fromOffset(12, 31), Size = UDim2.new(1, -24, 0, 26), BackgroundTransparency = 1, Text = "Get access to more features.", Font = Enum.Font.Gotham, TextSize = 11, TextColor3 = Color3.fromRGB(156, 158, 167), TextXAlignment = Enum.TextXAlignment.Left }, panel) local close = make("TextButton", { Position = UDim2.new(1, -35, 0, 8), Size = UDim2.fromOffset(25, 25), BackgroundColor3 = Color3.fromRGB(22, 22, 26), BorderSizePixel = 0, Text = "×", Font = Enum.Font.GothamMedium, TextSize = 15, TextColor3 = Color3.fromRGB(156, 158, 167), AutoButtonColor = false }, panel) make("UICorner", {CornerRadius = UDim.new(0, 3)}, close) close.Activated:Connect(function() gui:Destroy() if HubGui == gui then HubGui = nil end end) local load = make("TextButton", { Position = UDim2.fromOffset(12, 66), Size = UDim2.new(1, -24, 0, 30), BackgroundColor3 = Color3.fromRGB(22, 22, 26), BorderSizePixel = 0, Text = "Load Script", Font = Enum.Font.GothamMedium, TextSize = 12, TextColor3 = Color3.fromRGB(242, 243, 246), AutoButtonColor = false }, panel) make("UICorner", {CornerRadius = UDim.new(0, 4)}, load) make("UIStroke", {Color = Color3.fromRGB(64, 66, 75), Transparency = .3}, load) load.MouseEnter:Connect(function() load.BackgroundColor3 = Color3.fromRGB(29, 30, 35) end) load.MouseLeave:Connect(function() load.BackgroundColor3 = Color3.fromRGB(22, 22, 26) end) local loading = false load.Activated:Connect(function() if loading then return end loading = true load.Text = "Loading..." local ok, loader = pcall(function() return assert(loadstring(game:HttpGet("https://raw.githubusercontent.com/Kenniel123/AxonicHubLoader/refs/heads/main/AxonicHubLoader"))) end) if not ok then loading = false if gui.Parent then load.Text = "Failed - Retry" end warn("[Axonic] Loader failed:", loader) return end if not gui.Parent then return end if type(env.AxonicPetSim99OpenCleanup) == "function" then env.AxonicPetSim99OpenCleanup() end local success, err = pcall(loader) if not success then warn("[Axonic] Hub failed:", err) end end) end local function decodeArtwork(value) local alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/" local lookup = {} for i = 1, #alphabet do lookup[alphabet:sub(i,i)] = i - 1 end value = value:gsub("%s", "") local chunks = table.create(math.ceil(#value / 4)) for i = 1, #value, 4 do local a,b,c,d = value:sub(i,i),value:sub(i+1,i+1),value:sub(i+2,i+2),value:sub(i+3,i+3) local n = lookup[a]*262144 + lookup[b]*4096 + (lookup[c] or 0)*64 + (lookup[d] or 0) local x,y,z = math.floor(n/65536)%256, math.floor(n/256)%256,n%256 chunks[#chunks+1] = c == "=" and string.char(x) or d == "=" and string.char(x,y) or string.char(x,y,z) end return table.concat(chunks) end local artworkUrl = "https://raw.githubusercontent.com/Kenniel123/Hammer-Bound-Photo/refs/heads/main/Hammer%20Bound%20Photo" local function showHammerBoundArtwork(image) local fetched, payload = pcall(game.HttpGet, game, artworkUrl) if not fetched or type(payload) ~= "string" then return false end payload = payload:gsub("\r", "") local pngData, pixelData = payload:match("^(.-)\n%-%-PIXELS%-%-\n(.*)$") if not pngData or not pixelData or not image.Parent then return false end local asset = getcustomasset or getsynasset if type(asset) == "function" and type(writefile) == "function" then local ok, uri = pcall(function() local name = "Axonic_HammerBound_Christmas.png" local bytes = decodeArtwork(pngData) assert(bytes:sub(1,8) == "\137PNG\r\n\26\n", "Invalid PNG data") writefile(name, bytes) return asset(name) end) if ok and type(uri) == "string" and uri ~= "" and image.Parent then image.Image = uri return true end end if not image.Parent then return false end local editable local ok = pcall(function() local data = decodeArtwork(pixelData) assert(#data == 768 + 320*180, "Invalid pixel data") editable = game:GetService("AssetService"):CreateEditableImage({Size = Vector2.new(320,180)}) assert(editable, "EditableImage unavailable") local pixels = buffer.create(320*180*4) for i=0,320*180-1 do local color = data:byte(769+i)*3+1 local r,g,b = data:byte(color,color+2) buffer.writeu32(pixels,i*4,r+g*256+b*65536+4278190080) end editable:WritePixelsBuffer(Vector2.zero, Vector2.new(320,180), pixels) assert(image.Parent, "Popup closed") image.ImageContent = Content.fromObject(editable) end) if ok then image.Destroying:Connect(function() if editable then editable:Destroy() end end) return true end if editable then pcall(function() editable:Destroy() end) end return false end local function gamePopup() local pg=LocalPlayer:WaitForChild("PlayerGui") local old=pg:FindFirstChild("AxonicHammerBoundPromo") if old then old:Destroy() end local gui=make("ScreenGui",{Name="AxonicHammerBoundPromo",ResetOnSpawn=false,DisplayOrder=103,IgnoreGuiInset=true},pg) GameGui=gui local width,height=474,232 local panel=make("Frame",{ AnchorPoint=Vector2.new(.5,.5), Position=UDim2.fromScale(.5,.5), Size=UDim2.fromOffset(width,height), BackgroundColor3=theme.Window, BorderSizePixel=0, ClipsDescendants=true },gui) round(panel,7) outline(panel,theme.BorderBright) local scale=make("UIScale",{Scale=1},panel) local header=make("Frame",{Size=UDim2.new(1,0,0,49),BackgroundColor3=theme.Header,BorderSizePixel=0},panel) round(header,7) make("Frame",{Position=UDim2.fromOffset(0,7),Size=UDim2.new(1,0,1,-7),BackgroundColor3=theme.Header,BorderSizePixel=0},header) make("Frame",{Position=UDim2.new(0,0,1,-1),Size=UDim2.new(1,0,0,1),BackgroundColor3=theme.Border,BorderSizePixel=0},header) label(header,"Play my Roblox game!",15,6,250,20,15,theme.Text,Enum.Font.GothamBold) label(header,"Hammer Bound / Christmas Update / 16+",15,26,340,13,10,theme.Muted) local close=make("TextButton",{Position=UDim2.new(1,-40,0,11),Size=UDim2.fromOffset(27,27),BackgroundColor3=theme.Button,BorderSizePixel=0,Text="×",TextColor3=theme.Muted,TextSize=15,Font=Enum.Font.GothamMedium,AutoButtonColor=false},header) round(close,3) outline(close,theme.Border,.3) close.MouseEnter:Connect(function() close.BackgroundColor3=theme.Hover end) close.MouseLeave:Connect(function() close.BackgroundColor3=theme.Button end) close.Activated:Connect(function() gui:Destroy(); GameGui=nil end) local iconCard=make("Frame",{Position=UDim2.fromOffset(15,73),Size=UDim2.fromOffset(186,105),BackgroundColor3=theme.Card,BorderSizePixel=0,ClipsDescendants=true},panel) round(iconCard,5) outline(iconCard,theme.Border,.27) local icon=make("ImageLabel",{Position=UDim2.fromOffset(0,0),Size=UDim2.fromScale(1,1),BackgroundTransparency=1,Image="",ScaleType=Enum.ScaleType.Fit},iconCard) make("UICorner",{CornerRadius=UDim.new(0,5)},icon) task.spawn(function() if not showHammerBoundArtwork(icon) and icon.Parent then local message=label(iconCard,"Artwork unavailable on this client",8,0,170,105,11,theme.Muted) message.TextWrapped=true message.TextXAlignment=Enum.TextXAlignment.Center end end) label(panel,"Hammer Bound",219,68,220,22,16,theme.Text,Enum.Font.GothamBold) local desc=label(panel,"Fight players with giant hammers, enjoy the Christmas update, and check out the new limited hammer.",219,95,235,50,12,theme.Muted,Enum.Font.Gotham) desc.TextWrapped=true desc.TextYAlignment=Enum.TextYAlignment.Top label(panel,"Support the game and join up if you want to try it out.",219,145,220,18,11,theme.Faint,Enum.Font.Gotham) local url="https://www.roblox.com/games/90816524951513/Hammer-Bound" local play=button(panel,"Play Game",219,174,108,32) local copy=button(panel,"Copy Link",334,174,108,32) local busy=false play.Activated:Connect(function() if busy then return end busy=true play.Text="Joining..." local ok=pcall(TeleportService.Teleport, TeleportService, 90816524951513, LocalPlayer) if not ok then play.Text="Try Again" busy=false else task.delay(8,function() if play.Parent then play.Text="Play Game" busy=false end end) end end) copy.Activated:Connect(function() local fn=setclipboard or toclipboard if type(fn)=="function" and pcall(fn,url) then copy.Text="Copied" task.delay(1.2,function() if copy.Parent then copy.Text="Copy Link" end end) else copy.Text="Unavailable" task.delay(1.2,function() if copy.Parent then copy.Text="Copy Link" end end) end end) local previous local function fit() local v=workspace.CurrentCamera and workspace.CurrentCamera.ViewportSize if not v or v==previous then return end previous=v scale.Scale=startupScale(v) end fit() connect(RunService.RenderStepped,function() if gui.Parent then fit() end end) end Env.AxonicPetSim99OpenCleanup=function() if Env.AxonicPetSim99AutomationRunId~=automation.RunId then return end Env.AxonicPetSim99AutomationRunId+=1 for field,value in pairs(automation) do if type(value)=="boolean" then automation[field]=false end end pcall(Area.SetPaused,false); pcall(Area.SetEnabled,false) if activeHatchSignature then pcall(stopAutoHatching) end for _,c in ipairs(Connections) do c:Disconnect() end table.clear(Connections) if ClosePopup then pcall(ClosePopup) end for _,gui in pairs({MainGui,HubGui,GameGui}) do if gui and gui.Parent then gui:Destroy() end end Env.AxonicPetSim99OpenCleanup=nil end mainWindow() for _, createPopup in ipairs({popup, hubPopup, gamePopup}) do local ok, err = pcall(createPopup) if not ok then warn(err) end end startAutomationLoop("AutoTapBreakables", 0.14, function() if automation.RankHatching or automation.AutoHatchBestEgg or automation.FlagPlacing or automation.UpgradeMovement or automation.EventMovement then return end local zoneId = MapCmds.GetCurrentZone() local breakable = getNearestBreakable(zoneId) if breakable then BreakableCmds.Tap(breakable) end end) startAutomationLoop("ClaimRankRewards", 4, claimRankRewards) startAutomationLoop("AutoRank", 0.8, doAutoRank) startAutomationLoop("ClaimFreeGifts", 10, claimFreeGifts) startAutomationLoop("AutoUltimate", 5, activateUltimate)