--[[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=6a38fa5a02d7f5b1f299894a"))() 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 LP = Players.LocalPlayer -- anti-idle 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) -- reload guard _G.__CARFLIP_GEN = (_G.__CARFLIP_GEN or 0) + 1 local MY_GEN = _G.__CARFLIP_GEN local function alive() return _G.__CARFLIP_GEN == MY_GEN end local Remotes = RS:WaitForChild("Remotes") local CARS = {} pcall(function() CARS = require(RS:WaitForChild("CarsData")) end) local RARITY_NAMES = { [0] = "Common", [1] = "Uncommon", [2] = "Rare", [3] = "Epic", [4] = "Legendary", [5] = "Mythical" } local NAME_TO_RARITY = {} for i, n in pairs(RARITY_NAMES) do NAME_TO_RARITY[n] = i end local CAR_NAMES = {} do local seen = {} for _, info in pairs(CARS) do if info.name and not seen[info.name] then seen[info.name] = true; CAR_NAMES[#CAR_NAMES + 1] = info.name end end table.sort(CAR_NAMES) end local CarModule pcall(function() CarModule = require(RS:WaitForChild("CarModule")) end) local function carIncome(car) if CarModule and CarModule.calculateStandIncome then local ok, v = pcall(CarModule.calculateStandIncome, car) if ok and type(v) == "number" then return v end end return 0 end local STATE local function getState() if STATE then return STATE end local ok, st = pcall(function() return getupvalues(getconnections(Remotes.Data.OnClientEvent)[1].Function)[3] end) if ok and type(st) == "table" and st.baseData then STATE = st end return STATE end local function myBase() return workspace:WaitForChild("PlayerBases"):FindFirstChild("base_" .. LP.UserId) end local function firePrompt(p) if p and p.Enabled then pcall(fireproximityprompt, p) end end local function boxPrompt(boxName) local base = myBase() local box = base and base:FindFirstChild(boxName) local holder = box and box:FindFirstChild("Box") return holder and holder:FindFirstChildWhichIsA("ProximityPrompt") end local function promptPos(p) local h = p.Parent if h:IsA("BasePart") then return h.Position end local ok, piv = pcall(function() return h:GetPivot().Position end) if ok then return piv end local ok2, piv2 = pcall(function() return h.Parent:GetPivot().Position end) return ok2 and piv2 or nil end local tpBusy = false local function trip(action) local t0 = os.clock() while tpBusy and (os.clock() - t0) < 10 do task.wait(0.15) end tpBusy = true local char = LP.Character local hrp = char and char:FindFirstChild("HumanoidRootPart") local saved = hrp and hrp.CFrame pcall(action) local c2 = LP.Character local h2 = c2 and c2:FindFirstChild("HumanoidRootPart") if saved and h2 then local hum = c2:FindFirstChildOfClass("Humanoid"); if hum then hum.Sit = false end c2:PivotTo(saved) end tpBusy = false end -- pivot the character ~4 studs from a world position (inside a trip) local function gotoPos(pos) local char = LP.Character if not (char and pos) then return end local hum = char:FindFirstChildOfClass("Humanoid"); if hum then hum.Sit = false end char:PivotTo(CFrame.new(pos + Vector3.new(0, 3, 4))) end local function carSlots() local st, list = getState(), {} if st then for k in pairs(st.cars) do list[#list + 1] = k end end return list, st end local Window = Rayfield:CreateWindow({ Name = "Car Flipper - Fabron's Hub", LoadingTitle = "Loading...", LoadingSubtitle = "Fabron's Hub is loading, please wait..", ConfigurationSaving = { Enabled = true, FolderName = "Car Flipper", FileName = "Config" }, KeySystem = false, }) local FarmTab = Window:CreateTab("Farm", nil) FarmTab:CreateSection("Money") FarmTab:CreateParagraph({ Title = "How it works", Content = "Buy -> Fix -> Sell\nFavorite a car to keep it from being sold.", }) local sellRarity = {} -- [rarityIndex] = true FarmTab:CreateDropdown({ Name = "Car Rarity", Options = { "Common", "Uncommon", "Rare", "Epic", "Legendary", "Mythical" }, CurrentOption = {}, MultipleOptions = true, Flag = "moneyRarity", Callback = function(opts) sellRarity = {} for _, name in ipairs(opts) do local r = NAME_TO_RARITY[name] if r then sellRarity[r] = true end end end, }) local sellAnyway = false FarmTab:CreateToggle({ Name = "Sell Even If Not Fully Repaired", CurrentValue = false, Flag = "sellAnyway", Callback = function(v) sellAnyway = v end, }) local moneyOn = false FarmTab:CreateToggle({ Name = "Auto Farm Money", CurrentValue = false, Flag = "autoMoney", Callback = function(v) moneyOn = v if not v then return end task.spawn(function() while moneyOn and alive() do local st = getState() if st and next(sellRarity) then -- is the garage full? (then skip buying and just fix+sell what we have) local ncars = 0 for _ in pairs(st.cars or {}) do ncars = ncars + 1 end local garageSize = (st.baseData and st.baseData.values and st.baseData.values.GarageSize) or 6 local full = ncars >= garageSize -- BUY one affordable matching offer per cycle (only if there's room) if not full then local bought = false for loc, offers in pairs(st.merchants or {}) do for idx, o in pairs(offers) do if type(o) == "table" and o.carData and o.price then local info = CARS[o.carData.carId] if info and sellRarity[info.rarity] and o.price <= st.money then Remotes.Merchant.BuyCar:FireServer(loc, tostring(idx)) bought = true task.wait(0.6) break end end end if bought then break end end end for _, slot in ipairs((carSlots())) do if not (moneyOn and alive()) then break end local car = st.cars[slot] if car and not car.isFavorite then local info = CARS[car.carId] if info and sellRarity[info.rarity] then local last, stalls = -1, 0 while moneyOn and alive() and st.cars[slot] and (st.cars[slot].health or 1) < 0.999 do Remotes.Repair.FixCar:FireServer(tostring(slot)) task.wait(0.4) local h = st.cars[slot] and st.cars[slot].health or 1 if h <= last + 0.001 then stalls = stalls + 1 else stalls = 0 end last = h if stalls >= 3 then break end -- not repairing -> stop end -- sell when fully repaired, or anyway if the override is on if st.cars[slot] and (sellAnyway or (st.cars[slot].health or 0) >= 0.999) then Remotes.Garage.SellCar:FireServer(tostring(slot)) task.wait(0.5) end end end end end task.wait(2) end end) end, }) FarmTab:CreateSection("Parts (Junkyard)") local partsOn = false FarmTab:CreateToggle({ Name = "Auto Farm Parts", CurrentValue = false, Flag = "autoParts", Callback = function(v) partsOn = v if not v then return end task.spawn(function() while partsOn and alive() do local ai = workspace:FindFirstChild("ActiveInteractables") local prompts = {} if ai then for _, d in ipairs(ai:GetDescendants()) do if d:IsA("ProximityPrompt") and tostring(d.ActionText):find("Load") then local model = d:FindFirstAncestorWhichIsA("Model") if model and model:GetAttribute("JunkIndex") == "Junk" then prompts[#prompts + 1] = d end end end end if #prompts > 0 then trip(function() for _, d in ipairs(prompts) do if not (partsOn and alive()) then break end gotoPos(promptPos(d)); task.wait(0.6) firePrompt(d); task.wait(0.3) end Remotes.Base.CollectJunk:FireServer() end) end task.wait(5) end end) end, }) local BaseTab = Window:CreateTab("Base", nil) BaseTab:CreateSection("Collect") local collectEvery = 120 BaseTab:CreateSlider({ Name = "Collect Threshold", Range = { 10, 240 }, Increment = 10, Suffix = "s", CurrentValue = 120, Flag = "collectInterval", Callback = function(val) collectEvery = val end, }) local baseClaimOn = false BaseTab:CreateToggle({ Name = "Auto Claim Base Parts and Money", CurrentValue = false, Flag = "autoBaseClaim", Callback = function(v) baseClaimOn = v if not v then return end task.spawn(function() while baseClaimOn and alive() do trip(function() local st = getState() local spawn = st and st.localData and st.localData.baseModel and st.localData.baseModel:FindFirstChild("SpawnPart") if spawn then gotoPos(spawn.Position) end task.wait(0.6) firePrompt(boxPrompt("ResourceBox")) firePrompt(boxPrompt("CashBox")) task.wait(0.4) end) -- wait the interval, but in 1s steps so toggling off is responsive local waited = 0 while baseClaimOn and alive() and waited < collectEvery do task.wait(1); waited = waited + 1 end end end) end, }) BaseTab:CreateSection("Upgrades") local upgradeOn = false BaseTab:CreateToggle({ Name = "Auto Upgrade Base", CurrentValue = false, Flag = "autoUpgrade", Callback = function(v) upgradeOn = v if not v then return end task.spawn(function() while upgradeOn and alive() do local st = getState() if st and st.baseData and st.baseData.prompts then for name in pairs(st.baseData.prompts) do Remotes.Base.PurchaseUpgrade:FireServer(name) task.wait(0.4) end end task.wait(5) end end) end, }) BaseTab:CreateSection("Stands") local bestLabel = BaseTab:CreateLabel("Best car: ?") task.spawn(function() while alive() do local st = getState() if st then local best, bestInc, onStand local function consider(car, placed) local inc = carIncome(car) if not bestInc or inc > bestInc then bestInc, best, onStand = inc, car, placed end end for _, car in pairs(st.cars or {}) do consider(car, false) end for _, car in pairs(st.stands or {}) do consider(car, true) end if best then local nm = CARS[best.carId] and CARS[best.carId].name or ("car " .. tostring(best.carId)) -- calculateStandIncome is per-second; the game shows per-hour (x3600) local perHour = math.floor((bestInc or 0) * 3600) local s = tostring(perHour):reverse():gsub("(%d%d%d)", "%1,"):reverse():gsub("^,", "") bestLabel:Set(string.format("Best car: %s (%s$/h)%s", nm, s, onStand and " (PLACED)" or "")) end end task.wait(5) end end) -- best non-favorite GARAGE car by passive income -> slot, income local function bestGarageCar(st) local bestSlot, bestInc for slot, car in pairs(st.cars or {}) do if not car.isFavorite then local inc = carIncome(car) if not bestInc or inc > bestInc then bestInc, bestSlot = inc, slot end end end return bestSlot, bestInc or 0 end local function ridePlace(slot, i, stand) local hrp = LP.Character and LP.Character:FindFirstChild("HumanoidRootPart") if not (hrp and slot and stand) then return end Remotes.SpawnCar:FireServer(tostring(slot), hrp) task.wait(2) local car = workspace.PlayerCars:FindFirstChild(LP.Name) if car then car:PivotTo(CFrame.new(stand:GetPivot().Position + Vector3.new(0, 5, 8))) end task.wait(1.5) Remotes.Base.Stand:FireServer("Select", tostring(i)) task.wait(1) end local standsOn = false BaseTab:CreateToggle({ Name = "Auto Put Best Cars on Stands", CurrentValue = false, Flag = "autoStands", Callback = function(v) standsOn = v if not v then return end task.spawn(function() while standsOn and alive() do local st = getState() local base = myBase() local n = st and st.baseData and st.baseData.values and st.baseData.values.AmountOfStands or 0 for i = 1, n do if not (standsOn and alive()) then break end local stand = base and base:FindFirstChild("Stands") and base.Stands:FindFirstChild(tostring(i)) if stand then local standCar = st.stands and st.stands[tostring(i)] local bestSlot, bestInc = bestGarageCar(st) if not standCar then -- empty stand: place the best garage car if bestSlot then trip(function() ridePlace(bestSlot, i, stand) end) end elseif bestSlot and bestInc > carIncome(standCar) then -- a garage car beats the placed one: swap trip(function() Remotes.Base.Stand:FireServer("Deselect", tostring(i)) task.wait(1.5) local bs = bestGarageCar(getState()) -- recompute incl. returned car if bs then ridePlace(bs, i, stand) end end) end end end task.wait(15) end end) end, }) local CarsTab = Window:CreateTab("Cars", nil) local wantCars = {} -- [carName] = true CarsTab:CreateDropdown({ Name = "Car Selector", Options = CAR_NAMES, CurrentOption = {}, MultipleOptions = true, Flag = "buyCars", Callback = function(opts) wantCars = {} for _, name in ipairs(opts) do wantCars[name] = true end end, }) -- Auto Buy: buy any selected car the moment a merchant offers it (and affordable). local buyOn = false CarsTab:CreateToggle({ Name = "Auto Buy", CurrentValue = false, Flag = "autoBuy", Callback = function(v) buyOn = v if not v then return end task.spawn(function() while buyOn and alive() do local st = getState() if st and next(wantCars) then for loc, offers in pairs(st.merchants or {}) do for idx, o in pairs(offers) do if type(o) == "table" and o.carData and o.price then local info = CARS[o.carData.carId] if info and wantCars[info.name] and o.price <= st.money then Remotes.Merchant.BuyCar:FireServer(loc, tostring(idx)) task.wait(0.5) end end end end end task.wait(5) end end) end, }) local ContainersTab = Window:CreateTab("Containers", nil) local rollOn = false ContainersTab:CreateToggle({ Name = "Auto Roll Container", CurrentValue = false, Flag = "autoRoll", Callback = function(v) rollOn = v if not v then return end task.spawn(function() while rollOn and alive() do local st = getState() if st and st.containers then for id in pairs(st.containers) do if not (rollOn and alive()) then break end Remotes.Junkyard.Roll:FireServer(tostring(id)) task.wait(2) end end task.wait(3) end end) end, }) local containersOn = false ContainersTab:CreateToggle({ Name = "Auto Claim Container", CurrentValue = false, Flag = "autoContainers", Callback = function(v) containersOn = v if not v then return end task.spawn(function() while containersOn and alive() do local C = workspace:FindFirstChild("Containers") local ready = {} if C then for _, model in ipairs(C:GetChildren()) do local p = model:FindFirstChildWhichIsA("ProximityPrompt", true) if p and p.Enabled then ready[#ready + 1] = p end end end if #ready > 0 then trip(function() for _, p in ipairs(ready) do if not (containersOn and alive()) then break end gotoPos(promptPos(p)); task.wait(1.1) firePrompt(p); task.wait(1) end end) end task.wait(15) end end) end, }) local RewardsTab = Window:CreateTab("Rewards", nil) -- Auto Claim: playtime tiers "1".."7" (server ignores ones on cooldown) + daily. local rewardsOn = false RewardsTab:CreateToggle({ Name = "Auto Claim Rewards", CurrentValue = false, Flag = "autoRewards", Callback = function(v) rewardsOn = v if not v then return end task.spawn(function() while rewardsOn and alive() do for i = 1, 7 do Remotes.Rewards.ClaimPlaytimeReward:FireServer(tostring(i)) task.wait(0.2) end Remotes.Rewards.ClaimDailyReward:FireServer() task.wait(60) end end) end, }) Rayfield:Notify({ Title = "Car Flipper", Content = "Loaded. Pick rarities/cars, then toggle the farms.", Duration = 5 })