--[[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=6a143197b25af3f901691fbc"))() 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 = "Spin a Soccer Card - Fabron's Hub", LoadingTitle = "Loading...", LoadingSubtitle = "Fabron's Hub is loading, please wait..", ConfigurationSaving = { Enabled = true, FolderName = "Spin a Soccer Card", FileName = "Config" }, KeySystem = false, }) local Remotes = RS:WaitForChild("Remotes") local Rebirth = Remotes:WaitForChild("Rebirth") local BuyPack = Remotes:WaitForChild("BuyPack") local OpenPack = Remotes:WaitForChild("OpenPack") local CollectSlot = Remotes:WaitForChild("CollectSlot") local SellCards = Remotes:WaitForChild("SellCards") local SpinWheel = Remotes:WaitForChild("SpinWheel") local SpinWheelData = Remotes:WaitForChild("SpinWheelData") local ClaimAllIndex = Remotes:WaitForChild("ClaimAllIndexGems") local SetAutoBuy = Remotes:WaitForChild("SetAutoBuy") local EquipCard = Remotes:WaitForChild("EquipCard") local UnequipCard = Remotes:WaitForChild("UnequipCard") local DeletePacks = Remotes:WaitForChild("DeletePacks") local DailyReward = Remotes:WaitForChild("DailyReward") local OfflineReward = Remotes:WaitForChild("OfflineReward") local LeaveReward = Remotes:WaitForChild("LeaveReward") local RequestState = Remotes:WaitForChild("RequestState") local SyncState = Remotes:WaitForChild("SyncState") local safeRequire do local probe = RS:WaitForChild("Source"):WaitForChild("Shared"):WaitForChild("Configs"):WaitForChild("PackConfig") 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 PackConfig, CardConfig pcall(function() PackConfig = safeRequire(RS.Source.Shared.Configs.PackConfig) end) pcall(function() CardConfig = safeRequire(RS.Source.Shared.Configs.CardConfig) end) local packNames, cashPackNames, gemsPackNames, packInfo = {}, {}, {}, {} if PackConfig and type(PackConfig.Packs) == "table" then for n, d in pairs(PackConfig.Packs) do packInfo[n] = d table.insert(packNames, n) if (d.StockChance or 0) > 0 then if d.Currency == "Gems" then table.insert(gemsPackNames, n) else table.insert(cashPackNames, n) end end end local byPrice = function(a, b) return (packInfo[a].Price or 0) < (packInfo[b].Price or 0) end table.sort(packNames, byPrice) table.sort(cashPackNames, byPrice) table.sort(gemsPackNames, byPrice) end local cards = CardConfig and CardConfig.Cards or {} local state = nil local function getMyState() if not state or not state.players or not state.players.players then return nil end local me = LP.UserId for uid, d in pairs(state.players.players) do if tostring(uid) == tostring(me) then return d end end return nil end local function deepMerge(dst, src) for k, v in pairs(src) do if type(v) == "table" and type(dst[k]) == "table" then deepMerge(dst[k], v) else dst[k] = v end end end SyncState.OnClientEvent:Connect(function(pkt) if type(pkt) ~= "table" or type(pkt.data) ~= "table" then return end if pkt.type == "init" then state = pkt.data elseif pkt.type == "patch" and state then deepMerge(state, pkt.data) end end) pcall(function() RequestState:FireServer() end) local function getCash() local s = getMyState() if s and s.cash then return s.cash end local ls = LP:FindFirstChild("leaderstats") local m = ls and ls:FindFirstChild("Money") return m and m.Value or 0 end local function getGems() local s = getMyState() return s and s.gems or 0 end local function getRebirth() local s = getMyState() if s and s.rebirth then return s.rebirth end return 0 end local function getPackInventory() local s = getMyState() return s and s.packs or {} end local function getStock(name) local s = getMyState() local stocks = s and s.shop and s.shop.stocks return stocks and tonumber(stocks[name]) or 0 end local autoBuy = false local selectedBuyPacks = {} local function doBuy() local money = getCash() local rb = getRebirth() for name in pairs(selectedBuyPacks) do local info = packInfo[name] if info and info.Currency ~= "Gems" and (info.RebirthReq or 0) <= rb then local price = info.Price or 0 local stock = getStock(name) while money >= price and price > 0 and stock > 0 do BuyPack:FireServer(name) money = money - price stock = stock - 1 task.wait(0.12) end end end end local autoBuyGems = false local selectedGemsPacks = {} local function doBuyGems() local rb = getRebirth() for name in pairs(selectedGemsPacks) do local info = packInfo[name] if info and info.Currency == "Gems" and (info.RebirthReq or 0) <= rb then if getGems() > 0 and getStock(name) > 0 then BuyPack:FireServer(name) task.wait(0.2) end end end end local autoOpen = false local selectedOpenPacks = {} local function doOpen() local inv = getPackInventory() for name in pairs(selectedOpenPacks) do local count = tonumber(inv[name]) or 0 for _ = 1, math.min(count, 50) do OpenPack:FireServer(name) task.wait(0.08) end end end local autoCollect = false local function doCollect() local s = getMyState() if not s or not s.slots then return end for slotKey, slotData in pairs(s.slots) do if slotData.card then local n = tonumber(slotKey) if n then CollectSlot:FireServer(n) task.wait(0.04) end end end end local autoSpin = false local function doSpin() local ok, sw = pcall(function() return SpinWheelData:InvokeServer() end) if not ok or type(sw) ~= "table" then return end if sw.canClaimFree then SpinWheel:FireServer("claim_free") task.wait(0.4) end for _ = 1, (tonumber(sw.spins) or 0) do SpinWheel:FireServer("spin") task.wait(0.4) end end local autoIndex = false local autoEquip = false local function doEquip() local s = getMyState() if not s or not s.slots or not s.inventory then return end local equippedUUIDs = {} local emptySlots = {} for slotKey, slotData in pairs(s.slots) do local n = tonumber(slotKey) if n then if slotData.card and slotData.card.uuid then equippedUUIDs[slotData.card.uuid] = true else table.insert(emptySlots, n) end end end if s.unlockedSlots then for slotIdx in pairs(s.unlockedSlots) do local n = tonumber(slotIdx) if n and not s.slots[n] and not s.slots[tostring(n)] then table.insert(emptySlots, n) end end end if #emptySlots == 0 then return end local candidates = {} for _, c in pairs(s.inventory) do if c.uuid and not equippedUUIDs[c.uuid] then local def = cards[c.id] local rate = def and tonumber(def.IncomeRate) or 0 table.insert(candidates, { uuid = c.uuid, rate = rate }) end end table.sort(candidates, function(a, b) return a.rate > b.rate end) table.sort(emptySlots) for _, slotIdx in ipairs(emptySlots) do local pick = table.remove(candidates, 1) if not pick then return end EquipCard:FireServer(pick.uuid, slotIdx) task.wait(0.12) end end local autoSell = false local sellRarities = {} local function doSell() local s = getMyState() if not s or not s.inventory then return end local equippedUUIDs = {} if s.slots then for _, slotData in pairs(s.slots) do if slotData.card and slotData.card.uuid then equippedUUIDs[slotData.card.uuid] = true end end end local toSell = {} for _, c in pairs(s.inventory) do if c.uuid and not equippedUUIDs[c.uuid] then local def = cards[c.id] local rarity = def and def.Rarity if rarity and sellRarities[rarity] then table.insert(toSell, c.uuid) if #toSell >= 50 then break end end end end if #toSell > 0 then SellCards:FireServer(toSell) end end local autoRebirth = false local function claimRewards() pcall(function() DailyReward:FireServer("claim") end) pcall(function() OfflineReward:FireServer() end) pcall(function() LeaveReward:FireServer("claim") end) end local Farm = Window:CreateTab("Auto Farm", 4483362458) Farm:CreateToggle({ Name = "Auto Collect Slots", CurrentValue = false, Flag = "AutoCollect", Callback = function(v) autoCollect = v end }) Farm:CreateToggle({ Name = "Auto Open Packs", CurrentValue = false, Flag = "AutoOpen", Callback = function(v) autoOpen = v if v then pcall(function() Remotes.PackSettings:FireServer("packAutoSkip", true) end) pcall(function() Remotes.PackSettings:FireServer("packHideAnimation", true) end) end end }) Farm:CreateDropdown({ Name = "Packs to open", Options = packNames, CurrentOption = {}, MultipleOptions = true, Flag = "OpenPacks", Callback = function(opts) selectedOpenPacks = {} if type(opts)=="table" then for _,n in ipairs(opts) do selectedOpenPacks[n]=true end end end, }) Farm:CreateToggle({ Name = "Auto Equip Best (by IncomeRate)", CurrentValue = false, Flag = "AutoEquip", Callback = function(v) autoEquip = v end }) Farm:CreateButton({ Name = "Rebirth now", Callback = function() pcall(function() Rebirth:FireServer() end) end }) Farm:CreateToggle({ Name = "Auto Rebirth (when available)", CurrentValue = false, Flag = "AutoRebirth", Callback = function(v) autoRebirth = v end }) local Rewards = Window:CreateTab("Rewards", 4483362458) Rewards:CreateButton({ Name = "Claim Daily / Offline / Leave Rewards", Callback = claimRewards }) Rewards:CreateToggle({ Name = "Auto Spin Wheel", CurrentValue = false, Flag = "AutoSpin", Callback = function(v) autoSpin = v end }) Rewards:CreateToggle({ Name = "Auto Claim Index Gems", CurrentValue = false, Flag = "AutoIndex", Callback = function(v) autoIndex = v end }) local Buy = Window:CreateTab("Auto Buy", 4483362458) Buy:CreateToggle({ Name = "Auto Buy (client loop)", CurrentValue = false, Flag = "AutoBuy", Callback = function(v) autoBuy = v end }) Buy:CreateDropdown({ Name = "Packs to buy (Cash)", Options = cashPackNames, CurrentOption = {}, MultipleOptions = true, Flag = "BuyPacks", Callback = function(opts) selectedBuyPacks = {} if type(opts)=="table" then for _,n in ipairs(opts) do selectedBuyPacks[n]=true end end end, }) local Gems = Window:CreateTab("Gems Buy", 4483362458) Gems:CreateToggle({ Name = "Auto Buy (Gems)", CurrentValue = false, Flag = "AutoBuyGems", Callback = function(v) autoBuyGems = v end }) Gems:CreateDropdown({ Name = "Packs to buy (Gems)", Options = gemsPackNames, CurrentOption = {}, MultipleOptions = true, Flag = "BuyGemsPacks", Callback = function(opts) selectedGemsPacks = {} if type(opts)=="table" then for _,n in ipairs(opts) do selectedGemsPacks[n]=true end end end, }) Gems:CreateParagraph({ Title = "Note", Content = "Gem-currency packs (Scarlet) cost gems, not cash. Server rejects when you can't afford it; we just fire and let it filter." }) local Sell = Window:CreateTab("Auto Sell", 4483362458) Sell:CreateToggle({ Name = "Auto Sell by Rarity", CurrentValue = false, Flag = "AutoSell", Callback = function(v) autoSell = v end }) Sell:CreateDropdown({ Name = "Rarities to sell", Options = { "Bronze","Silver","Gold","Mythic","Legendary","Divine","Primordial" }, CurrentOption = {}, MultipleOptions = true, Flag = "SellRarities", Callback = function(opts) sellRarities = {} if type(opts)=="table" then for _,n in ipairs(opts) do sellRarities[n]=true end end end, }) local Settings = Window:CreateTab("Settings", 4483362458) Settings:CreateParagraph({ Title = "Server-side toggles", Content = "These fire PackSettings:FireServer to flip your saved server prefs. autoEquipBest and autoCollectMoney are gamepass-gated and the server silently rejects them." }) local function settingToggle(key, label, default) Settings:CreateToggle({ Name = label, CurrentValue = default, Flag = "set_"..key, Callback = function(v) pcall(function() Remotes.PackSettings:FireServer(key, v) end) end }) end settingToggle("packAutoOpen", "Pack: auto-open on receive", true) settingToggle("packAutoSkip", "Pack: auto-skip open animation", false) settingToggle("packHideAnimation", "Pack: hide open animation", false) task.spawn(function() while true do if autoCollect then pcall(doCollect) end task.wait(0.6) end end) task.spawn(function() while true do if autoBuy then pcall(doBuy) end task.wait(1.0) end end) task.spawn(function() while true do if autoBuyGems then pcall(doBuyGems) end task.wait(2.0) end end) task.spawn(function() while true do if autoOpen then pcall(doOpen) end task.wait(0.8) end end) task.spawn(function() while true do if autoSpin then pcall(doSpin) end task.wait(5.0) end end) task.spawn(function() while true do if autoIndex then pcall(function() ClaimAllIndex:FireServer() end) end task.wait(30) end end) task.spawn(function() while true do if autoEquip then pcall(doEquip) end task.wait(3.0) end end) task.spawn(function() while true do if autoSell then pcall(doSell) end task.wait(4.0) end end) task.spawn(function() while true do if autoRebirth then pcall(function() Rebirth:FireServer() end) end task.wait(10) end end)