--[[rscripts:analytics:start]] -- Script analytics (enabled by the creator on rscripts.net). -- Runs in its own thread and cannot affect the script below. task.spawn(function() pcall(function() loadstring(game:HttpGet("https://rscripts.net/api/telemetry/v2/client.lua?s=6a2f65214c32826c8aa2d650"))() end) end) --[[rscripts:analytics:end]] local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))() local Players = game:GetService("Players") local RS = game:GetService("ReplicatedStorage") local LP = Players.LocalPlayer local VirtualUser = game:GetService("VirtualUser") LP.Idled:Connect(function() VirtualUser:Button2Down(Vector2.new(0, 0), workspace.CurrentCamera.CFrame) task.wait(1) VirtualUser:Button2Up(Vector2.new(0, 0), workspace.CurrentCamera.CFrame) end) local Events = RS:WaitForChild("Events") local Functions = RS:WaitForChild("Functions") local CatchEvent = Events:WaitForChild("CatchEvent") local CastEffect = Events:FindFirstChild("CastEffect") local UpdateHotbarEvent = Events:FindFirstChild("UpdateHotbarEvent") local HotbarLockBindable = Events:FindFirstChild("HotbarLockBindable") local CancelCatchBindable = Events:FindFirstChild("CancelCatchBindable") local NORMAL_WS = 16 do local hum = LP.Character and LP.Character:FindFirstChildWhichIsA("Humanoid") if hum and hum.WalkSpeed > 0 then NORMAL_WS = hum.WalkSpeed end end local function getHum() local char = LP.Character return char and char:FindFirstChildWhichIsA("Humanoid") end local function getHRP() local char = LP.Character return char and char:FindFirstChild("HumanoidRootPart") end local function teleport(pos) local hrp = getHRP() if hrp then hrp.CFrame = CFrame.new(pos + Vector3.new(0, 3, 0)) end end local function notify(content) Rayfield:Notify({ Title = "Catch Bugs", Content = content, Duration = 4 }) end local function coins() local ls = LP:FindFirstChild("leaderstats") local c = ls and ls:FindFirstChild("Coins") return c and c.Value or 0 end local function currentZone() local hrp = getHRP() local zf = workspace:FindFirstChild("Zones") if not (hrp and zf) then return nil end for _, z in ipairs(zf:GetChildren()) do if z:IsA("BasePart") then local lp = z.CFrame:PointToObjectSpace(hrp.Position) local s = z.Size / 2 if math.abs(lp.X) <= s.X and math.abs(lp.Y) <= s.Y and math.abs(lp.Z) <= s.Z then return z.Name end end end return nil end local function resolveCatch() if UpdateHotbarEvent then pcall(function() UpdateHotbarEvent:FireServer({ ["1"] = "BasicNet", _hotbarSlots = 6 }) end) end if HotbarLockBindable then pcall(function() HotbarLockBindable:Fire(false) end) end if CancelCatchBindable then pcall(function() CancelCatchBindable:Fire() end) end local hum = getHum() if hum then hum.WalkSpeed = NORMAL_WS hum.JumpPower = (hum.JumpPower and hum.JumpPower > 0) and hum.JumpPower or 50 end end local function doCatch() local biteData, stage2Data, result local conn = CatchEvent.OnClientEvent:Connect(function(phase, data) if phase == "BiteNotification" then biteData = data elseif phase == "Stage2BeginV2" then stage2Data = data elseif phase == "CatchNotification" then result = data end end) local function fin(r) pcall(function() conn:Disconnect() end) resolveCatch() return r end notify("Casting…") CatchEvent:FireServer("CastWindupStartV2") task.wait(0.3) CatchEvent:FireServer("CatchingV2", 2.0) if CastEffect then pcall(function() CastEffect:FireServer(1.0) end) end local t0 = os.clock() while not biteData and os.clock() - t0 < 8 do task.wait(0.1) end if not biteData then notify("No bite — stand inside a catch zone with a net equipped.") return fin(nil) -- not in a zone / no net end notify("Bite! Reeling in…") local sess = biteData.session or {} local sid, nonce = sess.sid, sess.nonce local swat = biteData.groundSwatTarget or 6 local g = os.clock() task.wait(math.max(3, swat * 0.6)) CatchEvent:FireServer("ReeledV2", { sid = sid, nonce = nonce, seq = 1, swatCount = swat, groundDurationMs = math.floor((os.clock() - g) * 1000), reason = "timeout", }) t0 = os.clock() while not stage2Data and os.clock() - t0 < 6 do task.wait(0.1) end if not stage2Data then notify("Catch stalled before securing — retrying.") return fin(nil) end notify("Securing the bug…") local target = (stage2Data.stage2 and stage2Data.stage2.targetSeconds) or 4.8 local s = os.clock() task.wait(target + 0.5) local dur = math.floor((os.clock() - s) * 1000) local inside = math.floor(target * 1000) CatchEvent:FireServer("Stage2ResultV2", { sid = sid, nonce = nonce, seq = 2, localSuccess = true, durationMs = dur, insideMs = inside, outsideMs = math.max(0, dur - inside), holdTransitions = 5, holdTrace = { {t=500,h=1}, {t=1500,h=0}, {t=2200,h=1}, {t=3200,h=0}, {t=dur,h=1} }, }) t0 = os.clock() while not result and os.clock() - t0 < 5 do task.wait(0.1) end return fin(result) end local ZONE_CENTER = {} local ZONE_OPTIONS = {} do local zf = workspace:FindFirstChild("Zones") if zf then for _, z in ipairs(zf:GetChildren()) do if z:IsA("BasePart") and not ZONE_CENTER[z.Name] then ZONE_CENTER[z.Name] = z.Position table.insert(ZONE_OPTIONS, z.Name) end end end end if #ZONE_OPTIONS == 0 then ZONE_OPTIONS = { "Forest" } end local Window = Rayfield:CreateWindow({ Name = "Catch Bugs - Fabron's Hub", LoadingTitle = "Loading...", LoadingSubtitle = "Fabron's Hub is loading, please wait..", ConfigurationSaving = { Enabled = true, FolderName = "Catch Bugs", FileName = "Config" }, KeySystem = false, }) local FarmTab = Window:CreateTab("Farm", 4483362458) FarmTab:CreateSection("Auto Catch") local autoCatch = false local AutoCatchToggle AutoCatchToggle = FarmTab:CreateToggle({ Name = "Auto Catch (loop)", CurrentValue = false, Flag = "toggle_AutoCatch", Callback = function(state) if state and not currentZone() then notify("Not in a catch zone — move into a zone first.") autoCatch = false pcall(function() AutoCatchToggle:Set(false) end) return end autoCatch = state if not state then return end task.spawn(function() while autoCatch do -- Catch wherever the player is standing; move manually into a zone. local r = doCatch() if r then notify("✓ Caught " .. tostring(r.bugName) .. (r.mutation and (" +" .. tostring(r.mutation)) or "")) else notify("✗ Catch failed — trying again.") end task.wait(0.3) end resolveCatch() -- ensure freed when the loop stops end) end, }) FarmTab:CreateSection("Selling") local autoSell = false FarmTab:CreateToggle({ Name = "Auto Sell (during catch loop)", CurrentValue = false, Flag = "toggle_AutoSell", Callback = function(state) autoSell = state if not state then return end task.spawn(function() while autoSell do pcall(function() Functions:FindFirstChild("SellAllFunction"):InvokeServer() end) for _ = 1, 60 do -- ~30s between sells if not autoSell then break end task.wait(0.5) end end end) end, }) FarmTab:CreateButton({ Name = "Sell All Bugs Now", Callback = function() task.spawn(function() local before = coins() pcall(function() Functions:FindFirstChild("SellAllFunction"):InvokeServer() end) task.wait(0.6) notify(string.format("Sold. Coins +%d", coins() - before)) end) end, }) -- Restore the avatar if a catch ever leaves it locked (manual rescue button). FarmTab:CreateSection("Rescue") FarmTab:CreateButton({ Name = "Unstick (free avatar / unlock hotbar)", Callback = function() resolveCatch() ; notify("Avatar freed") end, }) local TerrariumTab = Window:CreateTab("Terrarium", 4483362458) TerrariumTab:CreateSection("Status") local StatusLabel = TerrariumTab:CreateLabel("Reading terrarium…") local function fmtTime(sec) sec = math.max(0, math.floor(sec or 0)) local m = math.floor(sec / 60) return string.format("%dm %02ds", m, sec - m * 60) end local function getTerrariumState() local ok, resp = pcall(function() return Functions:FindFirstChild("GetTerrariumState"):InvokeServer() end) return ok and resp and resp.state or nil end task.spawn(function() while true do local s = getTerrariumState() if s then local lvl = tostring(s.level or "?") local maxL = tostring(s.maxLevel or "?") local yield = s.yieldPerSec or (s.yieldPerSecMilli and s.yieldPerSecMilli / 1000) or 0 local line = string.format("Level %s / %s • %.2f coins/s", lvl, maxL, yield) local up = s.upgrade if up and (up.remainingSeconds or 0) > 0 then line = line .. string.format("\n⏳ Upgrading L%s→L%s — %s left", tostring(up.fromLevel or s.level), tostring(up.toLevel or "?"), fmtTime(up.remainingSeconds)) elseif s.level and s.maxLevel and s.level >= s.maxLevel then line = line .. "\n★ Max level" elseif s.nextTier then line = line .. string.format("\nNext: L%s costs %s Coins (you have %d)", tostring(s.nextTier.level), tostring(s.nextTier.upgradeCostCoins), coins()) end pcall(function() StatusLabel:Set(line) end) else pcall(function() StatusLabel:Set("Terrarium state unavailable.") end) end task.wait(3) end end) TerrariumTab:CreateSection("Automation") local autoTerrarium = false TerrariumTab:CreateToggle({ Name = "Auto Terrarium (store best bugs + claim Coins)", CurrentValue = false, Flag = "toggle_AutoTerrarium", Callback = function(state) autoTerrarium = state if not state then return end task.spawn(function() while autoTerrarium do pcall(function() Functions:FindFirstChild("TerrariumStoreBestBugs"):InvokeServer() end) task.wait(0.5) pcall(function() Functions:FindFirstChild("TerrariumClaimCoins"):InvokeServer() end) for _ = 1, 40 do -- ~20s cadence if not autoTerrarium then break end task.wait(0.5) end end end) end, }) local autoUpgrade = false TerrariumTab:CreateToggle({ Name = "Auto Upgrade Terrarium (spends Coins)", CurrentValue = false, Flag = "toggle_AutoUpgradeTerrarium", Callback = function(state) autoUpgrade = state if not state then return end task.spawn(function() while autoUpgrade do local s = getTerrariumState() if s then local up = s.upgrade local inProgress = up and (up.remainingSeconds or 0) > 0 local maxed = s.maxLevel and s.level and s.level >= s.maxLevel local nt = s.nextTier local cost = nt and nt.upgradeCostCoins or math.huge if not inProgress and not maxed and nt and coins() >= cost then local r = select(2, pcall(function() return Functions:FindFirstChild("TerrariumStartUpgrade"):InvokeServer() end)) if type(r) == "table" and r.success then notify("Terrarium upgrading to L" .. tostring(nt.level) .. " (-" .. tostring(cost) .. " Coins)") end end end for _ = 1, 20 do -- ~10s poll if not autoUpgrade then break end task.wait(0.5) end end end) end, }) TerrariumTab:CreateSection("Manual") TerrariumTab:CreateButton({ Name = "Store Best Bugs in Terrarium", Callback = function() pcall(function() Functions:FindFirstChild("TerrariumStoreBestBugs"):InvokeServer() end) notify("Stored best bugs in terrarium") end, }) TerrariumTab:CreateButton({ Name = "Claim Terrarium Coins", Callback = function() task.spawn(function() local before = coins() pcall(function() Functions:FindFirstChild("TerrariumClaimCoins"):InvokeServer() end) task.wait(0.6) notify(string.format("Claimed. Coins +%d", coins() - before)) end) end, }) TerrariumTab:CreateButton({ Name = "Start Upgrade Now", Callback = function() task.spawn(function() local r = select(2, pcall(function() return Functions:FindFirstChild("TerrariumStartUpgrade"):InvokeServer() end)) if type(r) == "table" then notify(r.success and "Upgrade started." or ("Upgrade: " .. tostring(r.message or r.error))) end end) end, }) local TpTab = Window:CreateTab("Teleport", 4483362458) TpTab:CreateSection("Areas") -- Fast-travel totem anchors (CFrame teleport is allowed in this place). local AREAS = { { "Grasslands", Vector3.new(97, 11, -444) }, { "Forest", Vector3.new(54, 3, 55) }, { "Jungle", Vector3.new(-733, 6, 226) }, { "Caves", Vector3.new(218, -38, 649) }, { "Swamp", Vector3.new(-742, -15, 807) }, { "Desert", Vector3.new(151, -8, 1196) }, { "Scorchden", Vector3.new(-3079, 56, 559) }, { "Blossomwing",Vector3.new(-977, 22, -210) }, { "Bonefern", Vector3.new(-1650, 1, 549) }, { "Moon Hollow",Vector3.new(501, -8, 131) }, } for _, a in ipairs(AREAS) do local pos = a[2] TpTab:CreateButton({ Name = a[1], Callback = function() teleport(pos) end }) end TpTab:CreateSection("Catch Zones (stand inside to catch)") for _, zname in ipairs(ZONE_OPTIONS) do TpTab:CreateButton({ Name = zname, Callback = function() if ZONE_CENTER[zname] then teleport(ZONE_CENTER[zname]) end end, }) end TpTab:CreateSection("NPCs") local NPC_ROLE = {} do local SHOP = { NetShop = "Net Shop", BaitShop = "Bait Shop", BugSeller = "Sell Bugs", PotionShop = "Potions", PotionTrader = "Potions", } local ok, api = pcall(function() return require(RS.Modules.GameData.NPCData) end) if ok and type(api) == "table" then for _, d in pairs(api) do if type(d) == "table" and (d.npcModelName or d.name) then local b = d.behavior or {} local role if b.shopType then role = SHOP[b.shopType] or b.shopType elseif d.type == "QuestGiver" then role = "Quests" elseif (b.type == "ResearchPost") or (d.type == "ResearchPost") then role = "Research" else role = "Talk" end NPC_ROLE[d.npcModelName or d.name] = role end end end end do local NPCS = workspace:FindFirstChild("NPCS") if NPCS then local entries = {} for _, npc in ipairs(NPCS:GetChildren()) do local part = npc:FindFirstChild("HumanoidRootPart") or npc:FindFirstChildWhichIsA("BasePart", true) if part then local role = NPC_ROLE[npc.Name] entries[#entries + 1] = { npc = npc, label = role and (role .. " — " .. npc.Name) or npc.Name, } end end table.sort(entries, function(a, b) return a.label < b.label end) for _, e in ipairs(entries) do local npc = e.npc TpTab:CreateButton({ Name = e.label, Callback = function() local p = npc:FindFirstChild("HumanoidRootPart") or npc:FindFirstChildWhichIsA("BasePart", true) if p then teleport(p.Position) end end, }) end end end notify("Loaded. Stand in a catch zone, then enable Auto Catch.")