--[[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=6a102cfd7919ff85189a88d7"))() end) end) --[[rscripts:analytics:end]] (function() local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))() local Players = game:GetService("Players") local RS = game:GetService("ReplicatedStorage") local RunService = game:GetService("RunService") local VirtualUser = game:GetService("VirtualUser") local LP = Players.LocalPlayer 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 Remotes = RS:WaitForChild("Remotes") local state = { autoHarvest = false, autoPlant = false, autoRoll = false, autoUnlock = false, autoFertilize = false, autoSell = false, autoClaim = false, autoUpgradeSeedLuck = false, autoUpgradeSeedRolls = false, autoUpgradeFarm = false, autoExtraYield = false, autoExtraPower = false, autoExtraSawRange = false, autoExtraSprinklerRange = false, autoSoilQuality = false, autoUpgradePlant = false, autoBuyGears = false, autoSpinWheel = false, autoPullLever = false, } local function rget(path) local node = Remotes for part in path:gmatch("[^%.]+") do if not node then return nil end node = node:FindFirstChild(part) end return node end local function safeFire(remote, ...) if not remote then return end local ok, err = pcall(remote.FireServer, remote, ...) if not ok then warn("[Fabron] "..tostring(remote.Name).." failed: "..tostring(err)) end end local function safeInvoke(remote, ...) if not remote then return nil end local ok, res = pcall(remote.InvokeServer, remote, ...) if not ok then return nil end return res end -- ── money parsing (suffix-aware, matches the game's display) ─────────── local SUFFIX = { K = 1e3, M = 1e6, B = 1e9, T = 1e12, QA = 1e15, QD = 1e15, QI = 1e18, QN = 1e18, SX = 1e21, SP = 1e24, OC = 1e27, O = 1e27, NO = 1e30, N = 1e30, DE = 1e33, D = 1e33, UN = 1e36, UD = 1e36, } local function parseMoney(v) if type(v) == "number" then return v end if type(v) ~= "string" or v == "" then return 0 end local s = v:upper():gsub("[$%,%s]", "") local num, suf = s:match("^([%d%.]+)(%a*)$") if not num then return 0 end return (tonumber(num) or 0) * (suf ~= "" and (SUFFIX[suf] or 1) or 1) end local ownedPlot local function getOwnedPlot() if ownedPlot and ownedPlot.Parent then return ownedPlot end ownedPlot = nil local plots = workspace:FindFirstChild("Map") and workspace.Map:FindFirstChild("Plots") pcall(function() local r = rget("Plot.GetPlot") if not r then return end local res = r:InvokeServer() if typeof(res) == "Instance" then ownedPlot = res elseif typeof(res) == "string" and plots then ownedPlot = plots:FindFirstChild(res) end end) if not ownedPlot and plots then for _, p in ipairs(plots:GetChildren()) do local owner = p:FindFirstChild("Owner") if owner and owner.Value == LP then ownedPlot = p; break end end end return ownedPlot end -- Floor 1 = plot.FarmPlot; floors 2-4 = plot.FloorN.FarmPlot local function getFarmPlot(floor) local plot = getOwnedPlot() if not plot then return nil end if floor == 1 then return plot:FindFirstChild("FarmPlot") end local sub = plot:FindFirstChild("Floor"..floor) return sub and sub:FindFirstChild("FarmPlot") end local function dirtTiles() local out = {} for floor = 1, 4 do local fp = getFarmPlot(floor) if fp then for _, plotModel in ipairs(fp:GetChildren()) do if plotModel.Name:match("^Plot%d+$") then local d = plotModel:FindFirstChild("Dirt") if d then out[#out+1] = { floor = floor, tier = plotModel.Name, dirt = d, lockedFlag = plotModel:GetAttribute("Unlocked"), unlocked = plotModel:GetAttribute("Unlocked") ~= false, } end end end end end return out end -- A dirt tile is empty when it has no PlantLevel attribute (matches game). local function isEmpty(dirt) return dirt:GetAttribute("PlantLevel") == nil end -- ── inventory helpers ────────────────────────────────────────────────── local function equipAnySeed() local char = LP.Character if not char then return nil end local equipped = char:FindFirstChildOfClass("Tool") if equipped and equipped:GetAttribute("InventoryCategory") == "Seeds" then return equipped end local hum = char:FindFirstChildOfClass("Humanoid") local bp = LP:FindFirstChild("Backpack") if not hum or not bp then return nil end for _, t in ipairs(bp:GetChildren()) do if t:IsA("Tool") and t:GetAttribute("InventoryCategory") == "Seeds" then hum:EquipTool(t); task.wait(0.15); return t end end return nil end -- Equip a tool whose name contains `sub` (e.g. "fertilizer"). local function equipMatching(sub) local char = LP.Character local hum = char and char:FindFirstChildOfClass("Humanoid") if not hum then return nil end local function find(container) if not container then return nil end for _, t in ipairs(container:GetChildren()) do if t:IsA("Tool") and t.Name:lower():find(sub, 1, true) then return t end end end local held = find(char) if held then return held end local t = find(LP:FindFirstChild("Backpack")) if t then hum:EquipTool(t); task.wait(0.15); return t end return nil end local function gearStocks() local out = {} local gs = RS:FindFirstChild("GearStocks") local mine = gs and gs:FindFirstChild(LP.Name) if not mine then return out end for _, g in ipairs(mine:GetChildren()) do local ok, val = pcall(function() return g.Value end) out[#out+1] = { name = g.Name, stock = (ok and tonumber(val)) or 0 } end return out end -- ── one-shot actions (used by UI buttons) ────────────────────────────── local function removeAllPlants() local r = rget("RemovePlant") if not r then return end for _, t in ipairs(dirtTiles()) do if not isEmpty(t.dirt) then safeFire(r, t.dirt); task.wait(0.1) end end end local CODES = { "PLANTRUSH", "UPDATE2", "THANKYOU", "BARF:3", "100KVISITS", "2KLIKES", "UPDATE1", "250KUSERS" } local function redeemCodes() local r = rget("SubmitCode") if not r then return end for _, code in ipairs(CODES) do safeInvoke(r, code); task.wait(1) end end task.spawn(function() while true do if state.autoHarvest then local r = rget("HarvestPlant") for _, t in ipairs(dirtTiles()) do if t.dirt:GetAttribute("PlantFullyGrown") then safeFire(r, t.dirt); task.wait(0.05) end end end task.wait(0.5) end end) task.spawn(function() while true do if state.autoPlant then for _, t in ipairs(dirtTiles()) do if isEmpty(t.dirt) then if not equipAnySeed() and state.autoRoll then safeFire(rget("RollSeeds")); task.wait(0.2) safeFire(rget("BuySeed"), 1); task.wait(0.3) equipAnySeed() end safeFire(rget("PlantSeed"), t.dirt) task.wait(0.15) end end local hum = LP.Character and LP.Character:FindFirstChildOfClass("Humanoid") if hum then hum:UnequipTools() end end task.wait(1) end end) task.spawn(function() while true do if state.autoUnlock then local r = rget("UnlockPlot") for _, t in ipairs(dirtTiles()) do if t.lockedFlag == false then safeFire(r, t.dirt); task.wait(0.2) end end end task.wait(5) end end) task.spawn(function() while true do if state.autoFertilize then local fert = equipMatching("fertilizer") local hum = LP.Character and LP.Character:FindFirstChildOfClass("Humanoid") if fert and hum then local r = rget("UseFertilizer") for _, t in ipairs(dirtTiles()) do if not isEmpty(t.dirt) and not t.dirt:GetAttribute("Fertilized") then if fert.Parent ~= LP.Character then hum:EquipTool(fert); task.wait(0.2) end safeFire(r, t.dirt); task.wait(0.3) end end hum:UnequipTools() end end task.wait(3) end end) task.spawn(function() while true do if state.autoUpgradePlant then local r = rget("UpgradePlant") for _, t in ipairs(dirtTiles()) do if not isEmpty(t.dirt) then safeInvoke(r, t.dirt); task.wait(0.1) end end end task.wait(5) end end) task.spawn(function() while true do task.wait(30) if state.autoSell then safeFire(rget("SellCrates")) end end end) task.spawn(function() while true do if state.autoClaim then -- State-query RFs exist (verified live): only claim what's ready. local daily = safeInvoke(rget("GetDailyRewardState")) if type(daily) == "table" and daily.CanClaim then safeInvoke(rget("ClaimDailyReward")) end local pt = safeInvoke(rget("GetPlaytimeRewardState")) if type(pt) == "table" then local timers = pt.RewardTimers or {} local claimed = pt.ClaimedMap or {} local r = rget("ClaimPlaytimeReward") for i = 1, (pt.TotalRewards or #timers) do if not claimed[tostring(i)] and not claimed[i] and (timers[i] == 0 or timers[i] == nil) then safeInvoke(r, i); task.wait(0.1) end end end end task.wait(60) end end) task.spawn(function() while true do if state.autoUpgradeSeedLuck then safeInvoke(rget("UpgradeSeedLuck")) end task.wait(0.2) if state.autoUpgradeSeedRolls then safeInvoke(rget("UpgradeSeedRolls")) end task.wait(0.2) if state.autoUpgradeFarm then safeInvoke(rget("UpgradeFarm")) end task.wait(0.2) local catFlags = { ExtraYield = state.autoExtraYield, ExtraPower = state.autoExtraPower, ExtraSawRange = state.autoExtraSawRange, ExtraSprinklerRange = state.autoExtraSprinklerRange, SoilQuality = state.autoSoilQuality, } local r = rget("PlotUpgradeTransaction") for cat, on in pairs(catFlags) do if on and r then -- SoilQuality only applies to floors 3-4. local startFloor = (cat == "SoilQuality") and 3 or 1 for floor = startFloor, 4 do safeInvoke(r, cat, "Floor"..floor) task.wait(0.08) end end end task.wait(15) end end) task.spawn(function() while true do if state.autoBuyGears then local r = rget("Gear.Transaction") if r then for _, g in ipairs(gearStocks()) do if g.stock > 0 then safeInvoke(r, g.name); task.wait(0.15) end end end end task.wait(2) end end) task.spawn(function() while true do if state.autoSpinWheel then safeInvoke(rget("SpinWheel.RequestSpin"), false) end task.wait(5) end end) task.spawn(function() while true do if state.autoPullLever then local r = rget("Composter.PullLever") if r then for serverId = 2, 4 do safeInvoke(r, serverId); task.wait(0.2) end end end task.wait(5) end end) -- ── UI ────────────────────────────────────────────────────────────────── local Window = Rayfield:CreateWindow({ Name = "Build a Ring Farm - Fabron's Hub", LoadingTitle = "Loading...", LoadingSubtitle = "Fabron's Hub is loading, please wait..", ConfigurationSaving = { Enabled = true, FolderName = "Build a Ring Farm", FileName = "Config" }, KeySystem = false, }) local function toggleOn(tab, name, key) tab:CreateToggle({ Name = name, CurrentValue = state[key] == true, Flag = key, Callback = function(v) state[key] = v end, }) end local FarmTab = Window:CreateTab("Farm", 4483362458) toggleOn(FarmTab, "Auto Harvest (all floors)", "autoHarvest") toggleOn(FarmTab, "Auto Plant (all floors)", "autoPlant") toggleOn(FarmTab, "Auto Roll + Buy (when planting fails)", "autoRoll") toggleOn(FarmTab, "Auto Unlock Plots (all floors)", "autoUnlock") toggleOn(FarmTab, "Auto Fertilize (all floors)", "autoFertilize") FarmTab:CreateButton({ Name = "Remove All Plants", Callback = function() task.spawn(removeAllPlants) end }) local SellTab = Window:CreateTab("Sell", 4483362458) toggleOn(SellTab, "Auto Sell Crates (30s)", "autoSell") SellTab:CreateButton({ Name = "Sell now", Callback = function() safeFire(rget("SellCrates")) end }) local UpgradeTab = Window:CreateTab("Upgrades", 4483362458) toggleOn(UpgradeTab, "Auto Upgrade Seed Luck", "autoUpgradeSeedLuck") toggleOn(UpgradeTab, "Auto Upgrade Seed Rolls", "autoUpgradeSeedRolls") toggleOn(UpgradeTab, "Auto Upgrade Farm (expand)", "autoUpgradeFarm") toggleOn(UpgradeTab, "Auto Upgrade Plants (per tile)", "autoUpgradePlant") local PlotTab = Window:CreateTab("Plot Upgrades", 4483362458) toggleOn(PlotTab, "Auto Extra Yield (floors 1-4)", "autoExtraYield") toggleOn(PlotTab, "Auto Extra Power (floors 1-4)", "autoExtraPower") toggleOn(PlotTab, "Auto Extra Saw Range (floors 1-4)", "autoExtraSawRange") toggleOn(PlotTab, "Auto Extra Sprinkler Range (floors 1-4)", "autoExtraSprinklerRange") toggleOn(PlotTab, "Auto Soil Quality (floors 3-4)", "autoSoilQuality") local plotResult = PlotTab:CreateLabel("Last: -") for _, cat in ipairs({ "ExtraYield", "ExtraPower", "ExtraSawRange", "ExtraSprinklerRange", "SoilQuality" }) do for floor = 1, 4 do PlotTab:CreateButton({ Name = cat.." · Floor"..floor, Callback = function() local res = safeInvoke(rget("PlotUpgradeTransaction"), cat, "Floor"..floor) pcall(plotResult.Set, plotResult, "Last: "..cat.." Floor"..floor.." → "..tostring(res)) end, }) end end local ShopTab = Window:CreateTab("Shop & Events", 4483362458) toggleOn(ShopTab, "Auto Buy All Gears", "autoBuyGears") toggleOn(ShopTab, "Auto Spin Wheel (5s)", "autoSpinWheel") toggleOn(ShopTab, "Auto Pull Compost Lever (floors 2-4)", "autoPullLever") ShopTab:CreateButton({ Name = "Redeem All Known Codes", Callback = function() task.spawn(redeemCodes) end }) local RewardTab = Window:CreateTab("Rewards", 4483362458) toggleOn(RewardTab, "Auto Claim (daily + playtime, 60s)", "autoClaim") local StatusTab = Window:CreateTab("Status", 4483362458) local plotLabel = StatusTab:CreateLabel("Plot: …") local cashLabel = StatusTab:CreateLabel("Cash: …") local tilesLabel = StatusTab:CreateLabel("Tiles: …") local plantsLabel = StatusTab:CreateLabel("Plants: …") task.spawn(function() while true do local plot = getOwnedPlot() local perFloorTotal, perFloorUnlocked = {0,0,0,0}, {0,0,0,0} local planted, ripe, empty = 0, 0, 0 for _, t in ipairs(dirtTiles()) do perFloorTotal[t.floor] = perFloorTotal[t.floor] + 1 if t.unlocked then perFloorUnlocked[t.floor] = perFloorUnlocked[t.floor] + 1 if not isEmpty(t.dirt) then planted = planted + 1 if t.dirt:GetAttribute("PlantFullyGrown") then ripe = ripe + 1 end else empty = empty + 1 end end end local cash = 0 local ls = LP:FindFirstChild("leaderstats") local cashStat = ls and ls:FindFirstChild("Cash") if cashStat then cash = parseMoney(cashStat.Value) end pcall(plotLabel.Set, plotLabel, "Plot: "..(plot and plot.Name or "not found")) pcall(cashLabel.Set, cashLabel, "Cash: "..tostring(cashStat and cashStat.Value or "?") .." ("..string.format("%.3g", cash)..")") pcall(tilesLabel.Set, tilesLabel, string.format( "Tiles: F1 %d/%d · F2 %d/%d · F3 %d/%d · F4 %d/%d", perFloorUnlocked[1], perFloorTotal[1], perFloorUnlocked[2], perFloorTotal[2], perFloorUnlocked[3], perFloorTotal[3], perFloorUnlocked[4], perFloorTotal[4])) pcall(plantsLabel.Set, plantsLabel, string.format( "Plants: %d planted · %d ripe · %d empty", planted, ripe, empty)) task.wait(1) end end) end)()