--[[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=6a2e8bfb25e0b3f9468623e7"))() 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 CollectionService = game:GetService("CollectionService") 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 Network = workspace:WaitForChild("Network") local Packets = require(RS:WaitForChild("Packets")) local ZONES = { { name = "SunlightZone", pos = Vector3.new(-1929, 2484, -1414) }, { name = "CoralReef", pos = Vector3.new(-1934, 2408, -1419) }, { name = "TwilightZone", pos = Vector3.new(-1934, 2219, -1419) }, { name = "DeepOcean", pos = Vector3.new(-1934, 1828, -1419) }, { name = "TheDeepDark", pos = Vector3.new(-1934, 1101, -1419) }, { name = "TheTrenches", pos = Vector3.new(-1929, 352, -1418) }, { name = "Atlantis", pos = Vector3.new(-1915, -15, -1419) }, { name = "AquaForest", pos = Vector3.new(-1927, -301, -1418) }, { name = "ShellReef", pos = Vector3.new(-1927, -651, -1418) }, { name = "KrakenWorld", pos = Vector3.new(-1927, -1102, -1418) }, { name = "MegalodonsLair", pos = Vector3.new(-1927, -1575, -1418) }, { name = "IceArea", pos = Vector3.new(-1921, -1957, -1422) }, { name = "JellyfishFields", pos = Vector3.new(-1926, -2344, -1422) }, { name = "SteampunkZone", pos = Vector3.new(-1926, -2887, -1422) }, { name = "DeadWaters", pos = Vector3.new(-1926, -3365, -1422) }, { name = "Prehistoric", pos = Vector3.new(-1926, -3779, -1422) }, } local ZONE_BY_NAME = {} local ZONE_OPTIONS = {} for _, z in ipairs(ZONES) do ZONE_BY_NAME[z.name] = z table.insert(ZONE_OPTIONS, z.name) end local SURFACE = CFrame.new(-1938, 2531, -1411) -- ShopsTeleportPart hub -- HOME = wherever we loaded in, used as the "return to surface" fallback. local HOME = nil local function getHRP() local char = LP.Character if not char then return nil end return char:FindFirstChild("HumanoidRootPart") end local function pin(cf) local hrp = getHRP() if not hrp then return end hrp.CFrame = cf hrp.AssemblyLinearVelocity = Vector3.zero end local function teleport(cf) local hrp = getHRP() if hrp then hrp.CFrame = cf end end local function pickBestWild(zoneName) local best, bestCps = nil, -1 for _, f in ipairs(CollectionService:GetTagged("SpawnedFish")) do if f.PrimaryPart and not f:GetAttribute("Owner") and not f:GetAttribute("Claimed") and f:GetAttribute("Zone") == zoneName then local cps = f:GetAttribute("CashPerSec") or 0 if cps > bestCps then best, bestCps = f, cps end end end return best, bestCps end local function grabFish(fish) if not fish or not fish.PrimaryPart then return false end local pp = fish.PrimaryPart:FindFirstChildWhichIsA("ProximityPrompt") if not pp then for _, d in ipairs(fish:GetDescendants()) do if d:IsA("ProximityPrompt") then pp = d break end end end if not pp or not fireproximityprompt then return false end for i = 1, 18 do if not fish.Parent or not fish.PrimaryPart then break end pin(CFrame.new(fish.PrimaryPart.Position + Vector3.new(0, 2.5, 0))) if i >= 3 then fireproximityprompt(pp) end -- settle ~0.2s before firing if fish.Parent == nil then return true end task.wait(0.1) end return fish.Parent == nil end local function backpackUsed() return LP:GetAttribute("BackpackUsed") or 0 end local function sellAll() return pcall(function() return Packets.SellInventory:Fire() end) end local function getInventory() local ok, snap = pcall(function() return Network["GetInventorySnapshot-RemoteFunction"]:InvokeServer() end) if ok and type(snap) == "table" then return snap end return {} end local function notify(title, content) Rayfield:Notify({ Title = title, Content = content, Duration = 4 }) end local Window = Rayfield:CreateWindow({ Name = "Dive Down 🦈 - Fabron's Hub", LoadingTitle = "Loading...", LoadingSubtitle = "Fabron's Hub is loading, please wait..", ConfigurationSaving = { Enabled = true, FolderName = "Dive Down", FileName = "Config" }, KeySystem = false, }) do local hrp = getHRP() HOME = hrp and hrp.CFrame or SURFACE end local FarmTab = Window:CreateTab("Farm", 4483362458) FarmTab:CreateSection("Target") local selectedZone = "Prehistoric" FarmTab:CreateDropdown({ Name = "Farm Zone (deeper = more income)", Options = ZONE_OPTIONS, CurrentOption = { selectedZone }, Flag = "dropdown_FarmZone", Callback = function(opt) selectedZone = (type(opt) == "table" and opt[1] or opt) or selectedZone end, }) FarmTab:CreateSection("Auto Farm") local autoSell = false FarmTab:CreateToggle({ Name = "Auto Sell at quantity threshold", CurrentValue = false, Flag = "toggle_AutoSell", Callback = function(state) autoSell = state end, }) local sellThreshold = 25 FarmTab:CreateSlider({ Name = "Sell at (fish in backpack)", Range = { 1, 30 }, Increment = 1, Suffix = " fish", CurrentValue = sellThreshold, Flag = "slider_SellThreshold", Callback = function(value) sellThreshold = value end, }) local antiDrown = true FarmTab:CreateToggle({ Name = "Anti-Drown (surface to refill, then return)", CurrentValue = true, Flag = "toggle_AntiDrown", Callback = function(state) antiDrown = state end, }) local autoFarm = false FarmTab:CreateToggle({ Name = "Auto Farm (dive + catch best fish)", CurrentValue = false, Flag = "toggle_AutoFarm", Callback = function(state) autoFarm = state if not state then return end task.spawn(function() -- warm up: hover at the zone so the deep fish spawn before we hunt local zone = ZONE_BY_NAME[selectedZone] for _ = 1, 18 do if not autoFarm then break end zone = ZONE_BY_NAME[selectedZone] or zone pin(CFrame.new(zone.pos)) task.wait(0.1) end while autoFarm do zone = ZONE_BY_NAME[selectedZone] or zone if antiDrown and LP:GetAttribute("IsDrowning") then teleport(SURFACE) for _ = 1, 25 do if not autoFarm or not LP:GetAttribute("IsDrowning") then break end task.wait(0.1) end -- re-warm spawns at depth after surfacing for _ = 1, 12 do if not autoFarm then break end pin(CFrame.new(zone.pos)) task.wait(0.1) end end local fish = pickBestWild(zone.name) if fish then grabFish(fish) else pin(CFrame.new(zone.pos)) -- nothing yet, hover to respawn end if autoSell and backpackUsed() >= sellThreshold then sellAll() task.wait(0.3) end task.wait(0.1) end end) end, }) FarmTab:CreateSection("Manual") FarmTab:CreateButton({ Name = "Sell All Inventory", Callback = function() task.spawn(function() local before = LP:GetAttribute("Cash") or 0 sellAll() task.wait(0.6) local after = LP:GetAttribute("Cash") or 0 notify("Dive Down", string.format("Sold. Cash +%d", after - before)) end) end, }) local TpTab = Window:CreateTab("Teleport", 4483362458) TpTab:CreateSection("Hubs") TpTab:CreateButton({ Name = "Shops", Callback = function() teleport(SURFACE) end }) TpTab:CreateButton({ Name = "Aquarium", Callback = function() teleport(HOME or SURFACE) end }) TpTab:CreateSection("Dive Zones (surface → deep)") for _, z in ipairs(ZONES) do local zname = z.name TpTab:CreateButton({ Name = zname, Callback = function() teleport(CFrame.new(ZONE_BY_NAME[zname].pos)) end, }) end local AqTab = Window:CreateTab("Aquarium", 4483362458) AqTab:CreateSection("Place Fish") AqTab:CreateButton({ Name = "Place Best Inventory Fish", Callback = function() task.spawn(function() local snap = getInventory() local bestId, bestCps, bestName = nil, -1, "?" for id, f in pairs(snap) do local cps = (type(f) == "table" and f.CashPerSec) or 0 if cps > bestCps then bestId, bestCps, bestName = id, cps, (f.Name or "?") end end if not bestId then notify("Dive Down", "Inventory empty.") return end local ok = pcall(function() return Network["RequestPlaceFish-RemoteFunction"]:InvokeServer(bestId) end) notify("Dive Down", ok and ("Placed " .. bestName .. " (" .. bestCps .. "/s)") or "Place failed") end) end, }) AqTab:CreateButton({ Name = "Place All Inventory Fish", Callback = function() task.spawn(function() local snap = getInventory() local n = 0 for id, _ in pairs(snap) do pcall(function() Network["RequestPlaceFish-RemoteFunction"]:InvokeServer(id) end) n = n + 1 task.wait(0.15) end notify("Dive Down", "Placed " .. n .. " fish") end) end, }) AqTab:CreateButton({ Name = "Equip Best Fish", Callback = function() pcall(function() Network["RequestEquipBestFish-RemoteFunction"]:InvokeServer() end) end, })