--[[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=6a3a5e058f2d4efb4c05a63c"))() end) end) --[[rscripts:analytics:end]] local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))() local LP = game:GetService("Players").LocalPlayer local RS = game:GetService("ReplicatedStorage") 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 Window = Rayfield:CreateWindow({ Name = "Climb and Drop a Lucky Block - Fabron's Hub", LoadingTitle = "Loading...", LoadingSubtitle = "Fabron's Hub is loading, please wait..", ConfigurationSaving = { Enabled = true, FolderName = "Climb and Drop a Lucky Block", FileName = "Config" }, KeySystem = false, }) -- Remotes (Knit, single RE.remote per service, dispatched by `kind`) -- local SVC = RS:WaitForChild("Packages"):WaitForChild("Knit"):WaitForChild("Services") local function remoteOf(name) return SVC:WaitForChild(name):WaitForChild("RE"):WaitForChild("remote") end local ClimbRemote = remoteOf("ClimbingService") local RollRemote = remoteOf("RollResultService") local SellRemote = remoteOf("LuckyBlockService") local PlotRemote = remoteOf("PlotService") -- ClimbConfig constants (read once for tuning) local CFG = require(RS.Datas.ClimbConfig) local TRUSS_HEIGHT = CFG.trussHeight or 10000 -- luck saturates here local MAX_CLIMB = CFG.maxClimbSpeed or 3000 local CHEAT_MARGIN = CFG.cheatMarginFactor or 2 local SELL_CD = CFG.sellCooldown or 1 -- Helpers -- local function notify(title, content, dur) Rayfield:Notify({ Title = title, Content = content, Duration = dur or 4 }) end local function hrp() local c = LP.Character or LP.CharacterAdded:Wait() return c:FindFirstChild("HumanoidRootPart") end -- Memoized DataManagerController (profile lives here) local DM local function getData() if not DM then local ok, m = pcall(function() return require(LP.PlayerScripts.Knit.Controllers.DataManagerController) end) if ok then DM = m end end if not DM then return nil end local ok, st = pcall(function() return DM:getState() end) if ok and st and st.Data then return st.Data end return nil end -- occupied stands (those carrying a brainrot) -> list of stand names local function occupiedStands() local out = {} local D = getData() if D and D.brainrotStands then for stand in pairs(D.brainrotStands) do out[#out+1] = stand end end return out end -- Loop runner: each toggle owns a flag; loops self-terminate on false -- local State = {} local Gen = {} -- generation token per key: stale threads exit when it bumps local function runLoop(key, interval, fn) State[key] = true Gen[key] = (Gen[key] or 0) + 1 local myGen = Gen[key] task.spawn(function() while State[key] and Gen[key] == myGen do pcall(fn) -- re-check before sleeping so a rapid off/on doesn't double-fire if not (State[key] and Gen[key] == myGen) then break end task.wait(interval) end end) end local function stopLoop(key) State[key] = false Gen[key] = (Gen[key] or 0) + 1 -- invalidate any in-flight thread immediately end RollRemote.OnClientEvent:Connect(function(payload) if not State.autoBrainrot then return end if type(payload) == "table" and payload.claimId then RollRemote:FireServer({ kind = "claimRequest", claimId = payload.claimId }) task.spawn(function() task.wait(0.5) -- let the claim land in inventory before placing PlotRemote:FireServer({ kind = "equipBest" }) end) end end) local BRAINROT_MODES = { ["Fast (luck ~35)"] = { wait = 2.5, height = 7000 }, ["Best Luck (50)"] = { wait = 4.0, height = 10000 }, } local brainrotMode = BRAINROT_MODES["Best Luck (50)"] -- default: safest/max luck local function brainrotCycle() local root = hrp() if not root then return end local pos = root.Position local t0 = workspace.DistributedGameTime ClimbRemote:FireServer({ kind = "climbStarted", startY = pos.Y, startTime = t0 }) task.wait(brainrotMode.wait) ClimbRemote:FireServer({ kind = "fallStarted" }) task.wait(0.3) -- refresh position in case the character drifted root = hrp(); pos = root and root.Position or pos ClimbRemote:FireServer({ kind = "fallEnded", endTime = workspace.DistributedGameTime, claimedHeight = brainrotMode.height, landPosition = pos, }) -- claim happens via OnClientEvent above end local function lbPieceCycle() local root = hrp() if not root then return end local pos = root.Position SellRemote:FireServer({ kind = "requestSell" }) task.wait(0.15) ClimbRemote:FireServer({ kind = "climbStarted", startY = pos.Y, startTime = workspace.DistributedGameTime }) task.wait(0.15) ClimbRemote:FireServer({ kind = "fallEnded", endTime = workspace.DistributedGameTime, claimedHeight = 100, landPosition = pos }) end local function forEachStand(kind) for _, stand in ipairs(occupiedStands()) do PlotRemote:FireServer({ kind = kind, stand = stand }) task.wait(0.2) end end local function collectMoneyCycle() forEachStand("collectMoney") end local function placeBestCycle() PlotRemote:FireServer({ kind = "equipBest" }) end local function upgradeCycle() forEachStand("upgradeBrainrot") end -- UI -- local Main = Window:CreateTab("Auto Farm", 4483362458) -- The two farm modes are mutually exclusive (one block per climb: sell it OR drop it). local Brainrot, LBPiece Main.CreateSection(Main, "Main Farms", true) Main.CreateLabel(Main, "Only one toggle can be on at a time.", true) Main:CreateDropdown({ Name = "Brainrot Mode", Options = { "Fast (2.8s)", "Best Luck (5s)" }, CurrentOption = { "Best Luck (5s)" }, Flag = "brainrotMode", Callback = function(opt) local m = BRAINROT_MODES[opt[1]] if m then brainrotMode = m end end, }) Brainrot = Main:CreateToggle({ Name = "Auto Farm Brainrot", CurrentValue = false, Flag = "autoBrainrot", Callback = function(v) if v then if State.autoLBPiece then stopLoop("autoLBPiece") pcall(function() Rayfield.Flags.autoLBPiece:Set(false) end) end runLoop("autoBrainrot", 0.1, brainrotCycle) notify("Auto Farm Brainrot", "Climbing and claiming brainrots") else stopLoop("autoBrainrot") end end, }) LBPiece = Main:CreateToggle({ Name = "Auto Farm LB Piece", CurrentValue = false, Flag = "autoLBPiece", Callback = function(v) if v then if State.autoBrainrot then stopLoop("autoBrainrot") pcall(function() Rayfield.Flags.autoBrainrot:Set(false) end) end runLoop("autoLBPiece", 0.2, lbPieceCycle) notify("Auto Farm LB Piece", "Selling blocks for LB piece (~+20/s).") else stopLoop("autoLBPiece") end end, }) Main.CreateSection(Main, "Others", true) Main:CreateToggle({ Name = "Auto Collect Money", CurrentValue = false, Flag = "autoCollect", Callback = function(v) if v then runLoop("autoCollect", 0.1, collectMoneyCycle) else stopLoop("autoCollect") end end, }) Main:CreateToggle({ Name = "Auto Place Best", CurrentValue = false, Flag = "autoPlace", Callback = function(v) if v then runLoop("autoPlace", 0.1, placeBestCycle) else stopLoop("autoPlace") end end, }) Main:CreateToggle({ Name = "Auto Upgrade", CurrentValue = false, Flag = "autoUpgrade", Callback = function(v) if v then runLoop("autoUpgrade", 0.1, upgradeCycle) else stopLoop("autoUpgrade") end end, })