--[[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=6a1e624ae5cf71df96884195"))() 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 = "Motorcycle Mayhem - Fabron's Hub", LoadingTitle = "Loading...", LoadingSubtitle = "Fabron's Hub is loading, please wait..", ConfigurationSaving = { Enabled = true, FolderName = "Motorcycle Mayhem", FileName = "Config" }, KeySystem = false, }) local RunService = game:GetService("RunService") local safeRequire do local probe = RS:WaitForChild("data"):WaitForChild("content"):WaitForChild("gamepassIds") if pcall(require, probe) then safeRequire = require else if not decompile then error("safeRequire: require blocked and `decompile` unavailable on this executor") end local cache = {} safeRequire = function(m) local cached = cache[m] if cached ~= nil then return cached end local ok, v = pcall(require, m) if ok then cache[m] = v; return v end local fn, perr = loadstring(decompile(m)) if not fn then error("safeRequire: parse error on " .. m:GetFullName() .. ": " .. tostring(perr)) end setfenv(fn, setmetatable({ require = safeRequire, script = m }, { __index = getfenv() })) local result = fn() cache[m] = result return result end end end local function resolveRunner() local sp = game:GetService("StarterPlayer"):FindFirstChild("StarterPlayerScripts") if sp and sp:FindFirstChild("game") and sp.game:FindFirstChild("runner") then return sp.game.runner end local ps = LP:FindFirstChild("PlayerScripts") if ps and ps:FindFirstChild("game") and ps.game:FindFirstChild("runner") then return ps.game.runner end return nil end local runner = resolveRunner() local Bikes = runner and safeRequire(runner.network.Bikes) local Users = runner and safeRequire(runner.network.Users) local profile = runner and safeRequire(runner.game.playerData.clientProfileData) local function getGears() if not profile then return 0 end local ok, dv = pcall(function() return profile.getCurrentDataValues().owned.gears._EXTREMELY_DANGEROUS_usedAsValue end) return ok and dv or 0 end local function getRide() local char = LP.Character local hum = char and char:FindFirstChildOfClass("Humanoid") local hrp = char and char:FindFirstChild("HumanoidRootPart") if hum and hum.Sit and hum.SeatPart and hrp then return hum.SeatPart, hrp end return nil, hrp end local SPOOF_SPEED = 500 -- studs/s reported to the server (reward caps here) local SKY_HEIGHT = 2000 -- studs above the start point to farm at (clear of traffic) local farmRunning = false local savedCFrame = nil -- player's position captured when the farm starts local skyAnchor = nil -- fixed sky CFrame we farm at -- First bike id from the player's garage (owned.bikes is { index = bikeId }). local function getOwnedBikeId() if not profile then return nil end local ok, bikes = pcall(function() return profile.getCurrentDataValues().owned.bikes._EXTREMELY_DANGEROUS_usedAsValue end) if ok and type(bikes) == "table" then for _, id in pairs(bikes) do return tostring(id) end end return nil end local function isSeated() local char = LP.Character local hum = char and char:FindFirstChildOfClass("Humanoid") return hum and hum.Sit and hum.SeatPart ~= nil end local function ensureSeatedInSky() local seat, hrp = getRide() if seat then return seat, hrp end local bikeId = getOwnedBikeId() local char = LP.Character local h = char and char:FindFirstChild("HumanoidRootPart") if not (bikeId and h and Bikes and skyAnchor) then return nil, h end Bikes.Spawn.Fire({ action = "Spawn", bikeId = bikeId, cFrameOverride = skyAnchor }) local waited = 0 repeat task.wait(0.2) waited = waited + 0.2 seat, hrp = getRide() until seat or waited > 6 return seat, hrp end local function returnHome() if not isSeated() then pcall(function() Users.ClientReadyForRespawn.Fire() end) task.wait(1) end local hum = LP.Character and LP.Character:FindFirstChildOfClass("Humanoid") if hum then hum.Sit = false; pcall(function() hum.Jump = true end) end task.wait(0.3) local elapsed = 0 while elapsed < 0.7 and savedCFrame do local h = LP.Character and LP.Character:FindFirstChild("HumanoidRootPart") if h then h.AssemblyLinearVelocity = Vector3.zero h.CFrame = savedCFrame end RunService.Heartbeat:Wait() elapsed = elapsed + 1 / 60 end end local function farmLoop() while farmRunning do local seat, hrp = ensureSeatedInSky() if not (seat and hrp and Bikes) then Rayfield:Notify({ Title = "Auto Farm Gears", Content = "No owned bike to spawn / couldn't seat.", Duration = 4 }) farmRunning = false break end local hold = RunService.Heartbeat:Connect(function() if seat and seat.Parent then seat.CFrame = skyAnchor local v = skyAnchor.LookVector * SPOOF_SPEED seat.AssemblyLinearVelocity = v hrp.AssemblyLinearVelocity = v end end) Bikes.Wheelie.Fire(true) -- Fire exactly one CloseCall per frame until we crash or get toggled off. local side = true while farmRunning and isSeated() do Bikes.CloseCall.Fire({ side = side and "Left" or "Right" }) side = not side RunService.Heartbeat:Wait() end pcall(function() Bikes.Wheelie.Fire(false) end) hold:Disconnect() -- Crashed mid-farm but still toggled on: clear it and loop to re-seat. if farmRunning and not isSeated() then pcall(function() Users.ClientReadyForRespawn.Fire() end) task.wait(1.2) end end returnHome() end local Tab = Window:CreateTab("Auto Farm", nil) Tab:CreateSection("Gears") local gearsLabel = Tab:CreateLabel("Balance: " .. tostring(math.floor(getGears()))) task.spawn(function() while task.wait(1) do pcall(function() gearsLabel:Set("Balance: " .. tostring(math.floor(getGears()))) end) end end) Tab:CreateToggle({ Name = "Auto Farm Gears", CurrentValue = false, Flag = "autoFarmGears", Callback = function(state) if state then local hrp = LP.Character and LP.Character:FindFirstChild("HumanoidRootPart") savedCFrame = (hrp and hrp.CFrame) or savedCFrame if savedCFrame then skyAnchor = savedCFrame + Vector3.new(0, SKY_HEIGHT, 0) end farmRunning = true task.spawn(farmLoop) else farmRunning = false end end, })