--[[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=6a34c6c411248572c956e5af"))() 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 VirtualUser = game:GetService("VirtualUser") local LP = Players.LocalPlayer -- tunables local MAX_POWER = 1.0 -- max cast power local MAX_SCORE = 5 -- cut/cook quality (>=2 already = max quality) -- anti-idle 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) -- Knit service handles local Knit = require(RS.Packages.Knit) local _svcCache = {} local function svc(name) if _svcCache[name] then return _svcCache[name] end local ok, s = pcall(function() return Knit.GetService(name) end) if ok and type(s) == "table" then _svcCache[name] = s return s end return nil end local function awaitPromise(p) if type(p) ~= "table" or type(p.await) ~= "function" then return false, p end return p:await() end local function notify(title, content, dur) Rayfield:Notify({ Title = title, Content = content, Duration = dur or 4 }) end -- Fishing local FishCfg = { enabled = false, reelDelay = 3.0, -- seconds to wait after a bite before resolving biteWait = 11, -- max seconds to wait for a bite (server watchdog is 12s) } local CastValidation local function getCastValidation() if CastValidation ~= nil then return CastValidation end local fc = LP:WaitForChild("PlayerScripts"):WaitForChild("Client"):WaitForChild("Controllers"):WaitForChild("FishingController") local cv = fc:FindFirstChild("CastValidation") local ok, mod = pcall(function() return require(cv) end) CastValidation = (ok and mod) or false return CastValidation end local function findRod() local char = LP.Character if char then for _, t in ipairs(char:GetChildren()) do if t:IsA("Tool") and t:GetAttribute("IsRod") then return t, true end end end local bp = LP:FindFirstChild("Backpack") if bp then for _, t in ipairs(bp:GetChildren()) do if t:IsA("Tool") and t:GetAttribute("IsRod") then return t, false end end end return nil end local function equipRod() local char = LP.Character local hum = char and char:FindFirstChildOfClass("Humanoid") if not hum then return false end local rod, equipped = findRod() if not rod then return false end if not equipped then hum:EquipTool(rod) task.wait(0.3) end return true end local function canCast() local cv = getCastValidation() if not cv then return true end local ok, r = pcall(function() return cv:CanCastServerValidation() end) return ok and r == true end local function doOneCast() local Fish = svc("Fish") if not Fish then return false end if not equipRod() then notify("Auto Fish", "No fishing rod found in backpack.", 5) task.wait(1) return false end if not canCast() then notify("Auto Fish", "Stand over water to fish.", 5) task.wait(1.5) return false end local bite = nil local conn = Fish.CastResponse:Connect(function(d) if typeof(d) == "table" and d.fish then bite = d end end) pcall(function() Fish:CastRequest(MAX_POWER) end) local t0 = os.clock() while os.clock() - t0 < FishCfg.biteWait and not bite do task.wait(0.15) if not FishCfg.enabled then break end end conn:Disconnect() if not bite then return false end local delay = FishCfg.reelDelay + (tonumber(bite.difficulty) or 1) * 0.4 local te = os.clock() while os.clock() - te < delay do task.wait(0.1) if not FishCfg.enabled then break end end pcall(function() Fish:MinigameResolved(true) end) return true end -- the cast flow disables the hotbar (Backpack controller); restore it when we stop local function restoreBackpack() local ok, BC = pcall(function() return Knit.GetController("Backpack") end) if ok and BC and type(BC.SetBackpackEnabled) == "function" then pcall(function() BC:SetBackpackEnabled(true) end) end end local function autoFishLoop() while FishCfg.enabled do local ok = pcall(doOneCast) if not ok then task.wait(1) end task.wait(0.4) end restoreBackpack() -- re-enable hotbar / inventory after stopping end -- Restaurant: auto cook & serve (demand-driven — only cook what's ordered) local ServeCfg = { enabled = false } local CookingConfig pcall(function() CookingConfig = require(RS.Modules.CookingConfig) end) local SUPPORTED_ORDERS = { "Nigiri", "Sashimi", "Sushi", -- any filet "Tempura Salmon", "Grilled Snapper", "Soy Glazed Eel", "Tuna Croquette", -- fish-gated, no quest } local ORDER_SET = {} for _, o in ipairs(SUPPORTED_ORDERS) do ORDER_SET[o] = true end -- the set of fish types (keyed by fish Name) a dish needs, or nil if any filet works local function requiredFishFor(order) local d = CookingConfig and CookingConfig[order] local rf = d and d.RequiredFish if type(rf) == "table" and next(rf) then return rf end return nil end local function filetFor(order) local Fish = svc("Fish") if not Fish then return nil end local rf = requiredFishFor(order) local ok, data = awaitPromise(Fish:RequestRestaurauntData()) if ok and type(data) == "table" then for _, it in ipairs(data) do if it.Name == "Fish Filet" and (not rf or (it.CF and rf[it.CF])) then return it end end end return nil end -- cut one caught fish that suits the order into a filet (rf = nil -> cut any fish) local function cutCaughtFishFor(order) local Fish = svc("Fish") if not Fish then return false end local rf = requiredFishFor(order) local ok, fd = awaitPromise(Fish:RequestFishData()) if not ok or type(fd) ~= "table" then return false end local id for _, v in pairs(fd) do if type(v) == "table" and v.ID and (not rf or (v.Name and rf[v.Name])) then id = v.ID break end end if not id then return false end pcall(function() Fish:StartCutSession() end) task.wait(0.25) pcall(function() Fish:CutFish(id, MAX_SCORE) end) task.wait(0.5) return true end -- ensure a filet suited to the order exists, cutting a matching caught fish if needed local function ensureFilet(order) local f = filetFor(order) if f then return f end if cutCaughtFishFor(order) then return filetFor(order) end return nil end local function cookDish(order) local Fish = svc("Fish") if not Fish then return false end local filet = ensureFilet(order) if not filet then return false end pcall(function() Fish:Cook(order, filet) end) return true end local function serveCustomer(c) local Fish = svc("Fish") if not Fish or not c then return false end pcall(function() c:SetAttribute("PendingFeed", true) end) local ok = pcall(function() Fish.StoreFood:Fire(c) end) return ok end local function canFulfill(order) if filetFor(order) then return true end local Fish = svc("Fish") if not Fish then return false end local rf = requiredFishFor(order) local ok, fd = awaitPromise(Fish:RequestFishData()) if ok and type(fd) == "table" then for _, v in pairs(fd) do if type(v) == "table" and v.ID and (not rf or (v.Name and rf[v.Name])) then return true end end end return false end local function pickCustomer() local waitC, waitOrder for _, c in ipairs(CollectionService:GetTagged("CUSTOMER")) do local owner = c:FindFirstChild("Owner") if owner and owner.Value == LP.Name then local order = c:GetAttribute("Order") local waiting = c:GetAttribute("OrderText") ~= nil -- present & ordering (cleared once served) local served = c:GetAttribute("PlateDelivered") or c:GetAttribute("PendingFeed") if waiting and not served and order and ORDER_SET[order] then if canFulfill(order) then return c, order, true end if not waitC then waitC, waitOrder = c, order end end end end if waitC then return waitC, waitOrder, false end return nil end local _warnedNoStock = 0 local function cookServeLoop() while ServeCfg.enabled do local c, order, fulfillable = pickCustomer() if c and fulfillable then if cookDish(order) then -- cook only because this customer is present & ordered it task.wait(1.0) -- let the cook register serveCustomer(c) -- direct StoreFood remote (works from anywhere) task.wait(0.5) else task.wait(1.0) end elseif c then -- a customer is waiting but we lack the fish their dish needs if os.clock() - _warnedNoStock > 15 then _warnedNoStock = os.clock() local rf = requiredFishFor(order) notify("Auto Cook & Serve", rf and ("Need the right fish for " .. order .. " — turn on Auto Fish") or "Out of fish to cook — enable Auto Fish to restock.", 6) end task.wait(1.5) else task.wait(1.0) -- no customer present: do nothing end end end local ServeInvCfg = { enabled = false } local function findCookedDish(order) local char = LP.Character if char then for _, t in ipairs(char:GetChildren()) do if t:IsA("Tool") and t:GetAttribute("IsDish") and t:GetAttribute("Plate") == order then return t, true end end end local bp = LP:FindFirstChild("Backpack") if bp then for _, t in ipairs(bp:GetChildren()) do if t:IsA("Tool") and t:GetAttribute("IsDish") and t:GetAttribute("Plate") == order then return t, false end end end return nil end -- pick a present, waiting customer we already hold a matching cooked dish for. local function pickCustomerWithDish() for _, c in ipairs(CollectionService:GetTagged("CUSTOMER")) do local owner = c:FindFirstChild("Owner") if owner and owner.Value == LP.Name then local order = c:GetAttribute("Order") local waiting = c:GetAttribute("OrderText") ~= nil local served = c:GetAttribute("PlateDelivered") or c:GetAttribute("PendingFeed") if waiting and not served and order and findCookedDish(order) then return c, order end end end return nil end -- equip the matching stocked dish (StoreFood serves the equipped one) then serve. local function serveFromInventory(c, order) local dish, equipped = findCookedDish(order) if not dish then return false end if not equipped then local hum = LP.Character and LP.Character:FindFirstChildOfClass("Humanoid") if hum then hum:EquipTool(dish) task.wait(0.25) end end return serveCustomer(c) end local _warnedNoDish = 0 local function serveInvLoop() while ServeInvCfg.enabled do local c, order = pickCustomerWithDish() if c then serveFromInventory(c, order) task.wait(0.5) else -- a customer may be waiting, but we hold no matching cooked dish local anyWaiting = false for _, cc in ipairs(CollectionService:GetTagged("CUSTOMER")) do local o = cc:FindFirstChild("Owner") if o and o.Value == LP.Name and cc:GetAttribute("OrderText") ~= nil then anyWaiting = true break end end if anyWaiting and os.clock() - _warnedNoDish > 15 then _warnedNoDish = os.clock() notify("Auto Serve", "No pre-cooked dish matches a waiting customer — cook some first.", 6) end task.wait(1.0) end end end -- Teleports (CFrame; zone anchors under workspace.Zones) local TPS = { { "Starting Dock", Vector3.new( 667.89, 14.11, -794.87) }, { "Koi Pond", Vector3.new(-122.90, 19.46, -1337.27) }, { "Bamboo Forest", Vector3.new(-2309.16, 18.24, -778.15) }, { "Razor Reef", Vector3.new(-1314.30, 19.46, 1625.34) }, { "Ice Biome", Vector3.new(-1763.33, 18.00, 138.65) }, } local function teleportTo(pos) local char = LP.Character local hrp = char and char:FindFirstChild("HumanoidRootPart") if not hrp then notify("Teleport", "Character not ready.", 3) return end hrp.CFrame = CFrame.new(pos + Vector3.new(0, 4, 0)) end -- GUI local Window = Rayfield:CreateWindow({ Name = "Fishing Chef - Fabron's Hub", LoadingTitle = "Loading...", LoadingSubtitle = "Fabron's Hub is loading, please wait..", ConfigurationSaving = { Enabled = true, FolderName = "Fishing Chef", FileName = "Config" }, KeySystem = false, }) local FishTab = Window:CreateTab("Fishing", 4483362458) FishTab:CreateToggle({ Name = "Auto Fish", CurrentValue = false, Flag = "AutoFish", Callback = function(v) FishCfg.enabled = v if v then task.spawn(autoFishLoop) else restoreBackpack() end end, }) FishTab:CreateSlider({ Name = "Reel Delay (s) [lower = faster, too low is rejected]", Range = { 1.5, 6 }, Increment = 0.5, Suffix = "s", CurrentValue = 3, Flag = "ReelDelay", Callback = function(v) FishCfg.reelDelay = v end, }) local RestTab = Window:CreateTab("Restaurant", 4483362458) RestTab:CreateToggle({ Name = "Auto Cook and Serve", CurrentValue = false, Flag = "AutoCookServe", Callback = function(v) ServeCfg.enabled = v if v then task.spawn(cookServeLoop) end end, }) RestTab:CreateToggle({ Name = "Auto Serve (from inventory)", CurrentValue = false, Flag = "AutoServeInv", Callback = function(v) ServeInvCfg.enabled = v if v then task.spawn(serveInvLoop) end end, }) local TpTab = Window:CreateTab("TPs", 4483362458) for _, z in ipairs(TPS) do local name, pos = z[1], z[2] TpTab:CreateButton({ Name = name, Callback = function() teleportTo(pos) notify("Teleport", "-> " .. name, 2) end }) end notify("Fishing Chef", "Fabron's Hub loaded.", 4)