--[[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=6a2b71154248511e84c3628c"))() 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 Knit = RS:WaitForChild("Packages"):WaitForChild("_Index") :WaitForChild("sleitnick_knit@1.5.1"):WaitForChild("knit"):WaitForChild("Services") local function RE(service, ev) return Knit:WaitForChild(service):WaitForChild("RE"):WaitForChild(ev) end local function RF(service, fn) return Knit:WaitForChild(service):WaitForChild("RF"):WaitForChild(fn) end local AutoTrainStart = RE("AutoService", "AutoTrainStart") -- FireServer(treadmillId) local AutoTrainStop = RE("AutoService", "AutoTrainStop") -- FireServer(LocalPlayer) [player OBJECT] local RunTrain = RE("TrainService", "RunTrain") -- FireServer(treadmillId) local JoinContest = RE("FightService", "JoinContest") -- FireServer("Area_1") local GetWinsEvent = RE("FightService", "GetWinsEvent") -- FireServer("WinGate_1", Vector3 crossPos) local QuitContest = RE("FightService", "QuitContestEvent") -- FireServer("Area_1") local RebirthFn = RF("RebirthService", "Rebirth") -- InvokeServer() -> result local EquipBestPets = RE("PetService", "EquipBestPets") -- FireServer() local StartSpin = RF("SpinningWheelService", "StartSpin")-- InvokeServer() local ClaimDaily = RE("DailyRewardService", "ClaimDailyReward") -- FireServer(index) local ClaimLongDaily = RE("LongDailyRewardService", "ClaimLongDailyReward") -- FireServer(index) local ClaimOnline = RE("OnlineRewardService", "ClaimOnlineReward") -- FireServer(index) local UnboxCrate = RE("ItemCrateService", "UnboxCrate") -- FireServer(crateId) local GetData = RF("PlayerDataService", "GetData") -- InvokeServer(key) -> value local BuyPotion = RE("RandomPotionService", "BuyPotionEvent") -- FireServer(qty); qty<0 credits qty*-10 Diamonds local AREA = "Area_1" local autoPower = false local autoWins = false local autoRebirth = false local autoClaim = false local treadmill = "Treadmill_1_1" -- overwritten with the best owned treadmill at load local rebirthAt = 0 -- min Power before auto-rebirth fires (0 = always try) local stats = { trainFires = 0, winFires = 0, rebirths = 0 } local function getData(key) local ok, v = pcall(function() return GetData:InvokeServer(key) end) if ok then return v end return nil end local function loadConfig(name) local mod if getloadedmodules then for _, x in ipairs(getloadedmodules()) do if x.Name == name then mod = x break end end end if not mod then return nil end local okR, r = pcall(require, mod) if okR and type(r) == "table" then return r end if decompile then local okD, src = pcall(decompile, mod) if okD and src then local fn = loadstring(src) if fn then local okF, v = pcall(fn); if okF and type(v) == "table" then return v end end end end return nil end local TREADMILL_INDEX, TREADMILL_AREA = {}, {} do local data = loadConfig("TreadmillsData") if type(data) == "table" then for id, info in pairs(data) do if type(info) == "table" then TREADMILL_INDEX[id] = tonumber(info.Index) or 0 TREADMILL_AREA[id] = info.LocatedArea end end end end local function indexOf(id) return TREADMILL_INDEX[id] or tonumber(tostring(id):match("_(%d+)$")) or 0 end local function loadedTreadmills() local set = {} local areas = workspace:FindFirstChild("Areas") if not areas then return set end for _, area in ipairs(areas:GetChildren()) do local folder = area:FindFirstChild("Treadmills") if folder then for _, t in ipairs(folder:GetChildren()) do set[t.Name] = true end end end return set end local function bestOwnedTreadmill() local owned = getData("Treadmills") local present = loadedTreadmills() local best, bestIdx = nil, -1 if type(owned) == "table" then for id, has in pairs(owned) do if has and type(id) == "string" and present[id] then local idx = indexOf(id) if idx > bestIdx then best, bestIdx = id, idx end end end -- fallback: highest owned overall if none of them are loaded yet if not best then for id, has in pairs(owned) do if has and type(id) == "string" then local idx = indexOf(id) if idx > bestIdx then best, bestIdx = id, idx end end end end end return best or "Treadmill_1_1" end local function collectWinGates() local list = {} local folder = workspace:FindFirstChild("Areas") folder = folder and folder:FindFirstChild(AREA) folder = folder and folder:FindFirstChild("WinGates") if not folder then return list end for i = 1, 16 do local g = folder:FindFirstChild("WinGate_" .. i) if g then local trig = g:FindFirstChild("Part") or g:FindFirstChild("gate") if trig and trig:IsA("BasePart") then list[#list + 1] = { name = "WinGate_" .. i, pos = trig.Position } end end end return list end -- leaderstats live values (keys carry emoji prefixes in this place) local function statValue(name) local ls = LP:FindFirstChild("leaderstats") if not ls then return 0 end local s = ls:FindFirstChild(name) return s and tonumber(s.Value) or 0 end local function powerVal() return statValue("⚡️Power") end local function winsVal() return statValue("🏆Wins") end local function rebirthVal() return statValue("♻️Rebirth") end -- interruptible wait that bails the moment its flag is cleared local function waitWhile(getFlag, seconds) local w = 0 while w < seconds and getFlag() do task.wait(0.1); w = w + 0.1 end end local Window = Rayfield:CreateWindow({ Name = "Animal Training - Fabron's Hub", LoadingTitle = "Loading...", LoadingSubtitle = "Fabron's Hub is loading, please wait..", ConfigurationSaving = { Enabled = true, FolderName = "Animal Training", FileName = "Config" }, KeySystem = false, }) local Farm = Window:CreateTab("Auto Farm", nil) Farm:CreateSection("Stats") local statLabel = Farm:CreateLabel("Power 0 | Wins 0 | Rebirth 0") local fireLabel = Farm:CreateLabel("Train fires 0 | Win fires 0 | Rebirths 0") local function refreshLabels() statLabel:Set(("Power %d | Wins %d | Rebirth %d"):format(powerVal(), winsVal(), rebirthVal())) fireLabel:Set(("Train fires %d | Win fires %d | Rebirths %d") :format(stats.trainFires, stats.winFires, stats.rebirths)) end task.spawn(function() while true do refreshLabels(); task.wait(1) end end) Farm:CreateSection("Power (Training)") -- Treadmill is auto-derived (best owned in current area) — no manual selection. treadmill = bestOwnedTreadmill() local treadLabel = Farm:CreateLabel("Treadmill: " .. treadmill .. " (auto)") Farm:CreateToggle({ Name = "Auto Train (Power)", CurrentValue = false, Flag = "autoPower", Callback = function(v) autoPower = v if not v then pcall(function() AutoTrainStop:FireServer(LP) end) return end task.spawn(function() local current = nil local sinceCheck = math.huge -- force a re-derive on the first iteration while autoPower do if sinceCheck >= 5 then sinceCheck = 0 local best = bestOwnedTreadmill() if best ~= current then current = best treadmill = best pcall(function() AutoTrainStart:FireServer(current) end) treadLabel:Set("Treadmill: " .. current .. " (auto)") end end pcall(function() RunTrain:FireServer(current) end) stats.trainFires = stats.trainFires + 1 sinceCheck = sinceCheck + 0.12 waitWhile(function() return autoPower end, 0.12) end pcall(function() AutoTrainStop:FireServer(LP) end) end) end, }) Farm:CreateSection("Wins (Race)") Farm:CreateToggle({ Name = "Auto Wins", CurrentValue = false, Flag = "autoWins", Callback = function(v) autoWins = v if not v then pcall(function() QuitContest:FireServer(AREA) end) return end task.spawn(function() local gatesList = collectWinGates() while autoWins do pcall(function() JoinContest:FireServer(AREA) end) waitWhile(function() return autoWins end, 0.3) for _, gate in ipairs(gatesList) do if not autoWins then break end pcall(function() GetWinsEvent:FireServer(gate.name, gate.pos) end) stats.winFires = stats.winFires + 1 waitWhile(function() return autoWins end, 0.06) end pcall(function() QuitContest:FireServer(AREA) end) waitWhile(function() return autoWins end, 0.3) end end) end, }) Farm:CreateSection("Rebirth") Farm:CreateInput({ Name = "Auto-rebirth when Power >= (0 = always try)", CurrentValue = "0", PlaceholderText = "0", RemoveTextAfterFocusLost = false, Flag = "rebirthAt", Callback = function(txt) rebirthAt = tonumber(txt) or 0 end, }) Farm:CreateButton({ Name = "Rebirth (once)", Callback = function() task.spawn(function() local ok = pcall(function() RebirthFn:InvokeServer() end) if ok then stats.rebirths = stats.rebirths + 1 end end) end, }) Farm:CreateToggle({ Name = "Auto Rebirth", CurrentValue = false, Flag = "autoRebirth", Callback = function(v) autoRebirth = v if not v then return end task.spawn(function() while autoRebirth do if powerVal() >= rebirthAt then local before = rebirthVal() pcall(function() RebirthFn:InvokeServer() end) task.wait(0.5) if rebirthVal() > before then stats.rebirths = stats.rebirths + 1 end end waitWhile(function() return autoRebirth end, 3) end end) end, }) local Misc = Window:CreateTab("Pets & Claims", nil) Misc:CreateSection("Pets") Misc:CreateButton({ Name = "Equip Best Pets", Callback = function() pcall(function() EquipBestPets:FireServer() end) end, }) Misc:CreateSection("Gems") local GEM_MULT = { K = 1e3, M = 1e6, B = 1e9, T = 1e12, Qa = 1e15, Qi = 1e18 } local gemNum = 1 local gemMag = "M" local GemButton -- forward-declared so the input/dropdown callbacks can rename it local function gemNumStr() return (gemNum == math.floor(gemNum)) and tostring(math.floor(gemNum)) or tostring(gemNum) end local function refreshGemBtn() if GemButton then GemButton:Set("Give " .. gemNumStr() .. gemMag .. " Gems") end end Misc:CreateInput({ Name = "Amount (number)", CurrentValue = "1", PlaceholderText = "1", RemoveTextAfterFocusLost = false, Flag = "gemNum", Callback = function(txt) gemNum = math.max(0, tonumber(txt) or 0); refreshGemBtn() end, }) Misc:CreateDropdown({ Name = "Magnitude", Options = { "K", "M", "B", "T", "Qa", "Qi" }, CurrentOption = { "M" }, MultipleOptions = false, Flag = "gemMag", Callback = function(opt) gemMag = type(opt) == "table" and opt[1] or opt; refreshGemBtn() end, }) GemButton = Misc:CreateButton({ Name = "Give 1M Gems", Callback = function() local amount = (gemNum or 0) * (GEM_MULT[gemMag] or 1) if amount <= 0 then return end -- credit = qty * 10, so fire -(amount/10) local q = math.max(1, math.floor(amount / 10)) pcall(function() BuyPotion:FireServer(-q) end) end, }) refreshGemBtn() Misc:CreateSection("Free Claims") local DAILY_N, LONGDAILY_N, ONLINE_N = 7, 15, 12 local function claimAll() pcall(function() StartSpin:InvokeServer() end) for i = 1, DAILY_N do pcall(function() ClaimDaily:FireServer(i) end); task.wait(0.05) end for i = 1, LONGDAILY_N do pcall(function() ClaimLongDaily:FireServer(i) end); task.wait(0.05) end for i = 1, ONLINE_N do pcall(function() ClaimOnline:FireServer(i) end); task.wait(0.05) end end Misc:CreateToggle({ Name = "Auto Claim (spin + all daily/long/online)", CurrentValue = false, Flag = "autoClaim", Callback = function(v) autoClaim = v if not v then return end task.spawn(function() while autoClaim do pcall(claimAll) waitWhile(function() return autoClaim end, 60) -- re-sweep each minute end end) end, }) Misc:CreateButton({ Name = "Claim All Now", Callback = function() task.spawn(function() pcall(claimAll) end) end, })