--[[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=6a2b9a80df57cf1d2417e603"))() end) end) --[[rscripts:analytics:end]] local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))() local LP = game:GetService("Players").LocalPlayer 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 = "Slime RNG - Fabron's Hub", LoadingTitle = "Loading...", LoadingSubtitle = "Fabron's Hub is loading, please wait..", ConfigurationSaving = { Enabled = true, FolderName = "Slime RNG", FileName = "Config" }, KeySystem = false, }) local Remotes = game:GetService("ReplicatedStorage") :WaitForChild("Packages"):WaitForChild("_Index") :WaitForChild("leifstout_networker@0.3.1") :WaitForChild("networker"):WaitForChild("_remotes") local function invoke(serviceName, method, ...) return Remotes:WaitForChild(serviceName).RemoteFunction:InvokeServer(method, ...) end local function highestOpenGate() local highest = 0 for _, zone in ipairs(workspace.Zones:GetChildren()) do local n = tonumber(zone.Name) local blocker = zone:FindFirstChild("Gate") and zone.Gate:FindFirstChild("ClientGateBlocker_" .. zone.Name) if blocker and not blocker.CanCollide and n and n > highest then highest = n end end return highest end -- The frontier zone is where the player should stand to buy the next gate. local function frontierZone() return workspace.Zones:FindFirstChild(tostring(highestOpenGate() + 1)) end local walkSession = 0 local function walkToZone(zone) if not zone then return end local spawnPart = zone:FindFirstChild("POI") and zone.POI:FindFirstChild("PlayerSpawn") if not spawnPart then return end walkSession = walkSession + 1 local mySession = walkSession task.spawn(function() for _ = 1, 20 do if not alive() then return end if mySession ~= walkSession then return end -- newer walk started local char = LP.Character local hrp = char and char:FindFirstChild("HumanoidRootPart") local humanoid = char and char:FindFirstChildOfClass("Humanoid") if not (hrp and humanoid) then task.wait(0.5) end if hrp and humanoid then if (hrp.Position - spawnPart.Position).Magnitude < 6 then return end humanoid:MoveTo(spawnPart.Position, spawnPart) humanoid.MoveToFinished:Wait() -- returns true on arrival, false on 8s timeout end end end) end local Source = game:GetService("ReplicatedStorage"):WaitForChild("Source") local Packages = game:GetService("ReplicatedStorage").Packages local safeRequire do local probe = Source.Game.Items.RarityTiers 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 ZonesClient = safeRequire(Source.Features.Zones.ZonesServiceClient) local RollClient = safeRequire(Source.Features.Roll.RollServiceClient) local InventoryClient = safeRequire(Source.Features.Inventory.InventoryServiceClient) local UpgradeTree = safeRequire(Source.Features.Upgrades.UpgradeTree) local SlimesDefs = safeRequire(Source.Game.Items.Slimes) local RarityTiers = safeRequire(Source.Game.Items.RarityTiers) local PlayerData = safeRequire(Packages.DataService).client PlayerData:waitForData() _G.__SLIMERNG_GEN = (_G.__SLIMERNG_GEN or 0) + 1 local MY_GEN = _G.__SLIMERNG_GEN local function alive() return _G.__SLIMERNG_GEN == MY_GEN end local Bridge = Instance.new("BindableEvent") local nextBridgeId = 0 local bridgeJobs = {} Bridge.Event:Connect(function(id) local fn = bridgeJobs[id] bridgeJobs[id] = nil if fn then fn() end end) local function deferred(fn) return function(...) local args = table.pack(...) nextBridgeId = nextBridgeId + 1 local id = nextBridgeId bridgeJobs[id] = function() fn(table.unpack(args, 1, args.n)) end Bridge:Fire(id) end end local function playerCoins() return PlayerData:get().coins or 0 end local function nextGatePrice() local nextZone = ZonesClient:getFurthestZone() + 1 local info = ZonesClient:getZoneInfo(nextZone) return info and info.price, info and info.name end local function canAffordNextGate() local price = nextGatePrice() return price ~= nil and playerCoins() >= price end local function tryAdvanceOnce() local frontier = frontierZone() if not frontier then return false end walkToZone(frontier) if not canAffordNextGate() then return false end local bought = invoke("ZonesService", "requestPurchaseZone") if bought then walkToZone(frontierZone()) end return bought end local AutoAdvance = { enabled = false, interval = 30 } task.spawn(function() while alive() do if AutoAdvance.enabled then pcall(tryAdvanceOnce) end task.wait(AutoAdvance.interval) end end) local AutoCollect = { enabled = false, interval = 0.5 } local function collectAllLoot() for _, inst in ipairs(workspace.Loot:GetChildren()) do pcall(invoke, "LootService", "requestCollect", inst.Name) end end task.spawn(function() while alive() do if AutoCollect.enabled then pcall(collectAllLoot) end task.wait(AutoCollect.interval) end end) local function strippedId(inventoryKey) return inventoryKey:sub(1, 1) == "-" and inventoryKey:sub(2) or inventoryKey end local function rankedOwnedSlimes() local inv = PlayerData:get().inventory or {} local list = {} for invKey, entry in pairs(inv) do local slimeId, level, count if type(entry) == "table" then slimeId, level, count = entry.id, entry.level or 1, 1 else slimeId, level, count = strippedId(invKey), 0, entry end local ok, def = pcall(SlimesDefs.getSlime, slimeId) if ok and def then local tierOk, tier = pcall(RarityTiers.getTier, def.odds) table.insert(list, { invKey = invKey, slimeId = def.id, name = def.name, damage = def.damage or 0, health = def.health or 0, level = level, count = count, rarity = tierOk and tier and tier.name or "?", }) end end table.sort(list, function(a, b) if a.damage ~= b.damage then return a.damage > b.damage end if a.level ~= b.level then return a.level > b.level end return (a.health or 0) > (b.health or 0) end) return list end local function bestOwnedSlime() return rankedOwnedSlimes()[1] end local function ownsUpgrade(id) return PlayerData:get().upgrades[id] end local function isRoot(id) return UpgradeTree[id] ~= nil end local function purchasableUpgrades() local out = {} local owned = PlayerData:get().upgrades or {} for treeName, subtree in pairs(UpgradeTree) do for id, node in pairs(subtree) do if type(node) == "table" and node.cost and not owned[id] then local dep = node.dependency if dep == nil or isRoot(dep) or owned[dep] then table.insert(out, { id = id, name = node.name, currency = node.cost.currency, amount = node.cost.amount, tree = treeName, }) end end end end table.sort(out, function(a, b) return a.amount < b.amount end) return out end local function tryBuyCheapestUpgrade() local data = PlayerData:get() for _, up in ipairs(purchasableUpgrades()) do if (data[up.currency] or 0) >= up.amount then local ok, res = pcall(invoke, "UpgradeService", "requestUnlock", up.id) if ok and res then return up end end end return nil end local AutoPower = { roll = false, equipBest = false, feed = false, buyUpgrades = false, claimIndex = false, rebirth = false, rebirthCooldown = 180, -- seconds between rebirth attempts (3 min default) usePotions = false, potionTypes = { luck = true, ultraLuck = true, rollSpeed = true, currency = true }, attack = false, attackInterval = 0.3, -- SlimeGun has built-in fire-rate, server rate-limits anyway selectedSlime = "__best__", -- "__best__" = always feed current strongest rollInterval = 0.5, } local GameplayState = safeRequire(Source.Features.Gameplay.GameplayServiceClient).gameplay local function nearestEnemyId() local char = LP.Character local hrp = char and char:FindFirstChild("HumanoidRootPart") if not hrp then return nil end local bestId, bestDist for _, e in pairs(GameplayState.enemies) do if e.uniqueId and e.pos then local d = (e.pos - hrp.Position).Magnitude if not bestDist or d < bestDist then bestId, bestDist = e.uniqueId, d end end end return bestId end local function tryAttack() local id = nearestEnemyId() if id then pcall(invoke, "SlimeGunService", "tryFireSlimeGun", id) end end local POTION_KEYS = { "luck", "ultraLuck", "rollSpeed", "currency" } local function tryUsePotions() local boosts = PlayerData:get().boosts or {} local fired = {} for _, t in ipairs(POTION_KEYS) do local gated = AutoPower.potionTypes[t] local b = boosts[t] if gated and b and (b.amount or 0) > 0 then pcall(invoke, "BoostService", "requestUseBoost", t) table.insert(fired, t) end end _G.__SLIME_LAST_POTION_FIRE = { fired = fired, types = AutoPower.potionTypes } return fired end -- Expose for /eval debugging across reloads. _G.__SLIME_AUTOPOWER = AutoPower _G.__SLIME_TRY_POTIONS = tryUsePotions local RebirthUtils = safeRequire(Source.Features.Rebirth.RebirthServiceUtils) local function tryRebirth() local d = PlayerData:get() if not RebirthUtils.canAffordRebirth(d.goop, d.rebirths) then return false end local ok, res = pcall(invoke, "RebirthService", "requestRebirth") return ok and res end local IndexRewardUtils = safeRequire(Source.Features.Index.IndexRewardUtils) local function tryClaimIndexRewards() local data = PlayerData:get() local indexData = data.index local cats = indexData and indexData.categories if not cats then return 0 end local claimed = 0 for category, _ in pairs(cats) do local ok, count = pcall(IndexRewardUtils.getClaimableRewardCountFromData, indexData, category) if ok and (count or 0) > 0 then if pcall(invoke, "IndexService", "requestClaimReward", category) then claimed = claimed + 1 end end end return claimed end local function feedTargetInvKey() if AutoPower.selectedSlime == "__best__" then local best = bestOwnedSlime() return best and best.invKey end return AutoPower.selectedSlime end local Food = safeRequire(Source.Game.Items.Food) local function tryFeedSelected() local target = feedTargetInvKey() if not target then return end local items = PlayerData:get().items or {} local sorted = Food.getSortedFoods() for i = #sorted, 1, -1 do local id = sorted[i].id local qty = items[id] or 0 if qty > 0 then pcall(invoke, "InventoryService", "requestUseFood", id, target, qty) return id, qty end end end local function setSetting(key, value) local re = Remotes:WaitForChild("SettingsService"):WaitForChild("RemoteEvent") pcall(function() re:FireServer("set", key, value) end) end -- Equip-best whenever inventory grows (new slime acquired from a roll). PlayerData:getChangedSignal("inventory"):Connect(deferred(function() if AutoPower.equipBest then pcall(function() InventoryClient:equipBest() end) end end)) for _, currency in ipairs({"coins", "rollCurrency", "goop"}) do PlayerData:getChangedSignal(currency):Connect(deferred(function() if AutoPower.buyUpgrades then pcall(tryBuyCheapestUpgrade) end end)) end -- Feed whenever a new food/fruit lands in items. PlayerData:getChangedSignal("items"):Connect(deferred(function() if AutoPower.feed then pcall(tryFeedSelected) end end)) PlayerData:getChangedSignal("index"):Connect(deferred(function() if AutoPower.claimIndex then pcall(tryClaimIndexRewards) end end)) task.spawn(function() while alive() do if AutoPower.rebirth then pcall(tryRebirth) end task.wait(AutoPower.rebirthCooldown) end end) task.spawn(function() while alive() do if AutoPower.usePotions then pcall(tryUsePotions) end task.wait(5) end end) task.spawn(function() while alive() do if AutoPower.attack then pcall(tryAttack) end task.wait(AutoPower.attackInterval) end end) local Tab = Window:CreateTab("Zones") local totalZones = #workspace.Zones:GetChildren() Tab:CreateSection("Status") local ProgressLabel = Tab:CreateLabel("Zone — of " .. totalZones) local PriceLabel = Tab:CreateLabel("Coins: — / —") local function refreshLabels() local current = ZonesClient:getFurthestZone() local price, nextName = nextGatePrice() pcall(function() ProgressLabel:Set(("Zone %d of %d"):format(current, totalZones)) end) pcall(function() PriceLabel:Set(("Coins: %s / %s (%s)"):format( playerCoins(), price or "—", nextName or "—")) end) end refreshLabels() PlayerData:getChangedSignal("coins"):Connect(deferred(refreshLabels)) PlayerData:getChangedSignal("furthestZone"):Connect(deferred(refreshLabels)) Tab:CreateSection("Auto-advance") Tab:CreateToggle({ Name = "Auto-advance and move", CurrentValue = false, Flag = "AutoAdvance_Enabled", Callback = function(v) AutoAdvance.enabled = v end, }) Tab:CreateSlider({ Name = "Retry interval (s)", Range = { 1, 60 }, Increment = 1, Suffix = "s", CurrentValue = AutoAdvance.interval, Flag = "AutoAdvance_Interval", Callback = function(v) AutoAdvance.interval = v end, }) Tab:CreateButton({ Name = "Advance once", Callback = function() pcall(tryAdvanceOnce) end, }) Tab:CreateSection("Move to zone") local moveTarget = 1 local function zoneAccessible(n) -- Zone 1 is the spawn; otherwise the gate at zone (n-1) must be open. return n == 1 or n <= ZonesClient:getFurthestZone() end local function zoneLabel(n) local info = ZonesClient:getZoneInfo(n) local name = info and info.name or "?" local prefix = zoneAccessible(n) and "" or "🔒 " return ("%s%d - %s"):format(prefix, n, name) end local function buildZoneOptions() local opts = {} for n = 1, totalZones do opts[n] = zoneLabel(n) end return opts end local ZoneDropdown ZoneDropdown = Tab:CreateDropdown({ Name = "Target zone", Options = buildZoneOptions(), CurrentOption = { zoneLabel(1) }, Flag = "MoveToZone_Target", Callback = function(opt) local label = type(opt) == "table" and opt[1] or opt local n = tonumber(label:match("(%d+)")) if n and zoneAccessible(n) then moveTarget = n elseif ZoneDropdown then -- Reject locked pick → revert UI to current valid target. pcall(function() ZoneDropdown:Set({ zoneLabel(moveTarget) }) end) end end, }) PlayerData:getChangedSignal("furthestZone"):Connect(deferred(function() pcall(function() ZoneDropdown:Refresh(buildZoneOptions(), false) end) end)) Tab:CreateButton({ Name = "Move to zone now", Callback = function() local zone = workspace.Zones:FindFirstChild(tostring(moveTarget)) walkToZone(zone) end, }) Tab:CreateSection("Auto-collect") Tab:CreateToggle({ Name = "Auto-collect loot/food", CurrentValue = false, Flag = "AutoCollect_Enabled", Callback = function(v) AutoCollect.enabled = v if v then pcall(collectAllLoot) end end, }) Tab:CreateSlider({ Name = "Loot poll interval (s)", Range = { 0.1, 5 }, Increment = 0.1, Suffix = "s", CurrentValue = AutoCollect.interval, Flag = "AutoCollect_Interval", Callback = function(v) AutoCollect.interval = v end, }) local PowerTab = Window:CreateTab("Slime") local OthersTab = Window:CreateTab("Others") PowerTab:CreateSection("Status") local BestSlimeStatus = PowerTab:CreateLabel("Best slime: —") local UpgradeStatus = PowerTab:CreateLabel("Affordable upgrades: —") local function refreshPowerStatus() local b = bestOwnedSlime() pcall(function() BestSlimeStatus:Set(b and ("Best slime: %s [%s] (str %d, hp %d)"):format(b.name, b.rarity, b.damage, b.health) or "Best slime: none owned") end) local ups = purchasableUpgrades() local d = PlayerData:get() local affordable = 0 for _, u in ipairs(ups) do if (d[u.currency] or 0) >= u.amount then affordable = affordable + 1 end end pcall(function() UpgradeStatus:Set(("Affordable upgrades: %d / %d"):format(affordable, #ups)) end) end -- Slime selector: "Best Slime" stays auto-tracked; others are explicit picks. local function slimeOptions() local opts = { "Best Slime" } for _, s in ipairs(rankedOwnedSlimes()) do table.insert(opts, ("%s (%d) — str %d"):format(s.name, s.count, s.damage)) end return opts end local function resolveSelection(label) if label == "Best Slime" then return "__best__" end -- Match by name prefix (the option label leads with the slime's display name). for _, s in ipairs(rankedOwnedSlimes()) do if label:sub(1, #s.name) == s.name then return s.invKey end end return "__best__" end local SlimeDropdown -- created later inside the Auto-feed section PlayerData:getChangedSignal("inventory"):Connect(deferred(function() if SlimeDropdown then pcall(function() SlimeDropdown:Refresh(slimeOptions(), false) end) end refreshPowerStatus() end)) PlayerData:getChangedSignal("coins"):Connect(deferred(refreshPowerStatus)) PlayerData:getChangedSignal("upgrades"):Connect(deferred(refreshPowerStatus)) PlayerData:getChangedSignal("stats"):Connect(deferred(function() if SlimeDropdown then pcall(function() SlimeDropdown:Refresh(slimeOptions(), false) end) end refreshPowerStatus() end)) refreshPowerStatus() local function refreshPowerLabel() end -- removed; status label deleted PowerTab:CreateSection("Auto-roll") PowerTab:CreateToggle({ Name = "Auto-roll", CurrentValue = false, Flag = "AutoPower_Roll", Callback = function(v) AutoPower.roll = v pcall(function() RollClient:setAutoRollEnabled(v and true or false) RollClient:setHiddenRollEnabled(v and true or false) end) end, }) PowerTab:CreateSection("Auto-equip best slime") PowerTab:CreateToggle({ Name = "Auto-equip best slime (after roll)", CurrentValue = false, Flag = "AutoPower_EquipBest", Callback = function(v) AutoPower.equipBest = v refreshPowerLabel() if v then pcall(function() InventoryClient:equipBest() end) end end, }) PowerTab:CreateButton({ Name = "Equip best slime now", Callback = function() pcall(function() InventoryClient:equipBest() end) end, }) PowerTab:CreateSection("Auto-feed slime") SlimeDropdown = PowerTab:CreateDropdown({ Name = "Feed target", Options = slimeOptions(), CurrentOption = { "Best Slime" }, Flag = "AutoPower_FeedTarget", Callback = function(opt) local label = type(opt) == "table" and opt[1] or opt AutoPower.selectedSlime = resolveSelection(label) end, }) PowerTab:CreateToggle({ Name = "Auto-feed slime", CurrentValue = false, Flag = "AutoPower_Feed", Callback = function(v) AutoPower.feed = v refreshPowerLabel() if v then pcall(tryFeedSelected) end end, }) PowerTab:CreateButton({ Name = "Feed selected now", Callback = function() local id, qty = tryFeedSelected() if id then Rayfield:Notify({ Title = "Fed", Content = id .. " x" .. qty }) end end, }) refreshPowerLabel() OthersTab:CreateSection("Auto-attack using slime gun") OthersTab:CreateToggle({ Name = "Auto-attack using slime gun", CurrentValue = false, Flag = "AutoPower_Attack", Callback = function(v) AutoPower.attack = v end, }) OthersTab:CreateSlider({ Name = "Attack interval (s)", Range = { 0.1, 2 }, Increment = 0.1, Suffix = "s", CurrentValue = AutoPower.attackInterval, Flag = "AutoPower_AttackInterval", Callback = function(v) AutoPower.attackInterval = v end, }) OthersTab:CreateSection("Auto-buy upgrades") OthersTab:CreateToggle({ Name = "Auto-buy upgrades", CurrentValue = false, Flag = "AutoPower_BuyUpgrades", Callback = function(v) AutoPower.buyUpgrades = v refreshPowerLabel() if v then pcall(tryBuyCheapestUpgrade) end end, }) OthersTab:CreateButton({ Name = "Buy cheapest upgrade now", Callback = function() local up = tryBuyCheapestUpgrade() if up then Rayfield:Notify({ Title = "Upgrade bought", Content = up.name }) end end, }) OthersTab:CreateSection("Auto-claim index") OthersTab:CreateToggle({ Name = "Auto-claim index", CurrentValue = false, Flag = "AutoPower_ClaimIndex", Callback = function(v) AutoPower.claimIndex = v refreshPowerLabel() if v then pcall(tryClaimIndexRewards) end end, }) OthersTab:CreateButton({ Name = "Claim index rewards now", Callback = function() local n = tryClaimIndexRewards() if n and n > 0 then Rayfield:Notify({ Title = "Index", Content = "Claimed " .. n .. " categories" }) end end, }) OthersTab:CreateSection("Auto-use potion") OthersTab:CreateToggle({ Name = "Auto-use potion", CurrentValue = false, Flag = "AutoPower_UsePotions", Callback = function(v) AutoPower.usePotions = v if v then pcall(tryUsePotions) end end, }) local POTION_LABELS = { luck = "Luck", ultraLuck = "Ultra Luck", rollSpeed = "Roll Speed", currency = "Currency", } local POTION_KEY_FROM_LABEL = {} for k, v in pairs(POTION_LABELS) do POTION_KEY_FROM_LABEL[v] = k -- pretty label → key POTION_KEY_FROM_LABEL[k] = k -- key itself → key (handles old saved config) end local potionOptions = {} for _, k in ipairs(POTION_KEYS) do table.insert(potionOptions, POTION_LABELS[k]) end OthersTab:CreateDropdown({ Name = "Potion types", Options = potionOptions, CurrentOption = potionOptions, MultipleOptions = true, Flag = "AutoPower_PotionTypes_v2", Callback = function(opts) if not opts or (type(opts) == "table" and #opts == 0) then return end local sel = {} for _, k in ipairs(POTION_KEYS) do sel[k] = false end local list = type(opts) == "table" and opts or { opts } for _, label in ipairs(list) do local k = POTION_KEY_FROM_LABEL[label] if k then sel[k] = true end end AutoPower.potionTypes = sel end, }) OthersTab:CreateButton({ Name = "Use all potions now", Callback = function() pcall(tryUsePotions) end, }) OthersTab:CreateSection("Rebirth") OthersTab:CreateToggle({ Name = "Auto-rebirth", CurrentValue = false, Flag = "AutoPower_Rebirth", Callback = function(v) AutoPower.rebirth = v if v then pcall(tryRebirth) end end, }) OthersTab:CreateSlider({ Name = "Rebirth cooldown (s)", Range = { 15, 300 }, Increment = 5, Suffix = "s", CurrentValue = AutoPower.rebirthCooldown, Flag = "AutoPower_RebirthCooldown", Callback = function(v) AutoPower.rebirthCooldown = v end, }) OthersTab:CreateButton({ Name = "Rebirth now", Callback = function() if tryRebirth() then Rayfield:Notify({ Title = "Rebirth", Content = "Done" }) else local d = PlayerData:get() local short = RebirthUtils.getRemainingGoop(d.goop, d.rebirths) or 0 Rayfield:Notify({ Title = "Rebirth", Content = ("Need %s more goop"):format(-short), }) end end, })