--[[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=6a2fc49939c6a16cab0fda10"))() 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 = "Clicker Simulator - Fabron's Hub", LoadingTitle = "Loading...", LoadingSubtitle = "Fabron's Hub is loading, please wait..", ConfigurationSaving = { Enabled = true, FolderName = "Clicker Simulator", FileName = "Config" }, KeySystem = false, }) -- Resolve the click remote by CLASS, not by name (names rotate per server). local function getClickRemote() local things = workspace:FindFirstChild("_THINGS") if not things then return nil end local folder = things:FindFirstChild("") if not folder then return nil end for _, r in ipairs(folder:GetChildren()) do if r:IsA("UnreliableRemoteEvent") then return r end end return nil end -- Lazily resolve the game's Network module (require works on this executor). local Network local function getNetwork() if Network then return Network end local ok, mod = pcall(function() return require(RS:WaitForChild("Library"):WaitForChild("Client"):WaitForChild("Network")) end) if ok then Network = mod end return Network end -- Lazily resolve any Library submodule once, cached. local libCache = {} local function getLib(path) -- path e.g. "Balancing" or "Client/Stats" if libCache[path] ~= nil then return libCache[path] or nil end local ok, mod = pcall(function() local node = RS:WaitForChild("Library") for seg in string.gmatch(path, "[^/]+") do node = node:WaitForChild(seg) end return require(node) end) libCache[path] = ok and mod or false return ok and mod or nil end -- Read the live, server-owned player profile (Currency/Rebirths/etc). local function profile() local Stats = getLib("Client/Stats") if not Stats then return nil end local ok, p = pcall(function() return Stats.Get(nil, true) end) return ok and p or nil end -- MAIN TAB local MainTab = Window:CreateTab("Main", 4483362458) MainTab:CreateSection("Auto Click") local clickRemote = getClickRemote() if not clickRemote then warn("[ClickerSim] Could not find the click UnreliableRemoteEvent.") end local autoClick = false local clicksPerTick = 5 local tickInterval = 0.03 MainTab:CreateToggle({ Name = "Auto Click", CurrentValue = false, Flag = "toggle_AutoClick", Callback = function(state) autoClick = state if not state then return end task.spawn(function() while autoClick do local rem = clickRemote or getClickRemote() clickRemote = rem if rem then for _ = 1, clicksPerTick do rem:FireServer() end end task.wait(tickInterval) end end) end, }) MainTab:CreateSlider({ Name = "Clicks per tick", Range = { 1, 25 }, Increment = 1, CurrentValue = clicksPerTick, Flag = "slider_ClicksPerTick", Callback = function(v) clicksPerTick = math.floor(v) end, }) MainTab:CreateSlider({ Name = "Tick interval (sec x100)", Range = { 3, 50 }, Increment = 1, CurrentValue = tickInterval * 100, Flag = "slider_TickInterval", Callback = function(v) tickInterval = v / 100 end, }) local clicksLabel = MainTab:CreateLabel("Clicks: ...") task.spawn(function() while true do local ls = LP:FindFirstChild("leaderstats") if ls then local c = ls:FindFirstChild("Clicks") local r = ls:FindFirstChild("Rebirths") local e = ls:FindFirstChild("Eggs") clicksLabel:Set(string.format( "Clicks: %s | Rebirths: %s | Eggs: %s", c and tostring(c.Value) or "?", r and tostring(r.Value) or "?", e and tostring(e.Value) or "?" )) end task.wait(1) end end) -- EGGS TAB local EggsTab = Window:CreateTab("Eggs", 4483362458) EggsTab:CreateSection("Auto Hatch") -- Populate the egg dropdown from the live world (dedup the folder names). local function listEggs() local seen, names = {}, {} local things = workspace:FindFirstChild("_THINGS") local eggsFolder = things and things:FindFirstChild("Eggs") if eggsFolder then for _, e in ipairs(eggsFolder:GetChildren()) do if not seen[e.Name] then seen[e.Name] = true names[#names + 1] = e.Name end end end table.sort(names) if #names == 0 then names = { "BasicEgg" } end return names end local eggOptions = listEggs() local selectedEgg = eggOptions[1] local hatchCount = 1 EggsTab:CreateDropdown({ Name = "Egg", Options = eggOptions, CurrentOption = { selectedEgg }, Flag = "dropdown_Egg", Callback = function(option) selectedEgg = typeof(option) == "table" and option[1] or option end, }) EggsTab:CreateInput({ Name = "Hatch count", PlaceholderText = "1", RemoveTextAfterFocusLost = false, Callback = function(text) hatchCount = math.max(1, math.floor(tonumber(text) or 1)) end, }) local function hatchOnce() local net = getNetwork() if not net then warn("[ClickerSim] Network module unavailable.") return false end local ok, res = pcall(function() return net.Channel("Egg"):InvokeServer("Hatch", selectedEgg, hatchCount) end) if not ok then warn("[ClickerSim] Hatch error: " .. tostring(res)) end return ok and res end EggsTab:CreateButton({ Name = "Hatch Once", Callback = function() task.spawn(hatchOnce) end, }) local autoHatch = false EggsTab:CreateToggle({ Name = "Auto Hatch (loops)", CurrentValue = false, Flag = "toggle_AutoHatch", Callback = function(state) autoHatch = state if not state then return end task.spawn(function() while autoHatch do hatchOnce() task.wait(0.6) end end) end, }) local RebirthTab = Window:CreateTab("Rebirth", 4483362458) RebirthTab:CreateSection("Auto Rebirth") -- Which rebirth buttons can we actually use right now? local function usableButtons() local Const = getLib("Constants") if not Const or type(Const.Rebirths) ~= "table" then return {} end local p = profile() or {} local owned = p.OwnedRebirthButtons or {} local unlocked = {} for _, name in pairs(p.UnlockedIslands or {}) do unlocked[name] = true end local out = {} for i, btn in pairs(Const.Rebirths) do if type(btn) == "table" then local free = btn.Cost == nil -- buttons 1-3 local isOwned = owned[tostring(i)] == true or owned[i] == true local islandOk = (btn.RequiredIsland == nil) or unlocked[btn.RequiredIsland] if (free or isOwned) and islandOk then out[#out + 1] = { index = i, amount = btn.Amount or 1 } end end end table.sort(out, function(a, b) return a.amount > b.amount end) -- biggest first return out end -- Best affordable button: highest Amount whose Clicks cost we can pay. local function bestAffordableButton() local Bal = getLib("Balancing") local p = profile() if not (Bal and p) then return nil end local cur = p.Rebirths or p.TotalRebirths or 0 local clicks = (p.Currency or {}).Clicks or 0 for _, b in ipairs(usableButtons()) do local ok, cost = pcall(Bal.GetRebirthCost, b.amount, cur) if ok and clicks >= cost then return b.index, b.amount, cost end end return nil end local function rebirthFire(index) local net = getNetwork() if not net then return false end return pcall(function() net.Channel("Rebirths"):FireServer("Rebirth", index) end) end local rebirthLabel = RebirthTab:CreateLabel("Rebirths: ...") task.spawn(function() while true do local p = profile() if p then local idx, amt, cost = bestAffordableButton() rebirthLabel:Set(string.format( "Rebirths: %s | Clicks: %s | %s", tostring(p.Rebirths or p.TotalRebirths or 0), tostring((p.Currency or {}).Clicks or 0), idx and string.format("best now: btn %s (+%s, cost %s)", tostring(idx), tostring(amt), tostring(math.floor(cost))) or "not affordable yet" )) end task.wait(1) end end) RebirthTab:CreateButton({ Name = "Rebirth Once (best affordable)", Callback = function() local idx = bestAffordableButton() if idx then rebirthFire(idx) else Rayfield:Notify({ Title = "Rebirth", Content = "Not enough Clicks for any button." }) end end, }) local autoRebirth = false RebirthTab:CreateToggle({ Name = "Auto Rebirth (best affordable)", CurrentValue = false, Flag = "toggle_AutoRebirth", Callback = function(state) autoRebirth = state if not state then return end task.spawn(function() while autoRebirth do local idx = bestAffordableButton() if idx then rebirthFire(idx) end task.wait(1.5) end end) end, }) local WORLD_ORDER = { "Spawn", "Winter", "Forest", "Desert", "Candy", "Beach", "Sakura", "Volcano", "Rave", "Heaven", } local unlockHash = "4858d6ebf8876eafd89058c1a606554fe2d4173c" local function getUnlockRF() local things = workspace:FindFirstChild("_THINGS") local folder = things and things:FindFirstChild("") if not folder then return nil end return folder:FindFirstChild(unlockHash) end local function unlockedSet() local set = {} local p = profile() for _, name in pairs((p and p.UnlockedIslands) or {}) do set[name] = true end return set end -- The next locked island in sequence (the only one that can be unlocked next). local function nextLockedWorld() local set = unlockedSet() for _, name in ipairs(WORLD_ORDER) do if not set[name] then return name end end return nil end local function unlockWorld(name) local rf = getUnlockRF() if not rf then return false, "remote-missing" end local ok, ret = pcall(function() return rf:InvokeServer(name) end) return ok and ret, ret end local WorldsTab = Window:CreateTab("Worlds", 4483362458) local autoUnlockWorlds = false WorldsTab:CreateToggle({ Name = "Auto Unlock Worlds (in order)", CurrentValue = false, Flag = "toggle_AutoUnlockWorlds", Callback = function(state) autoUnlockWorlds = state if not state then return end task.spawn(function() while autoUnlockWorlds do local nxt = nextLockedWorld() if not nxt then autoUnlockWorlds = false Rayfield:Notify({ Title = "Worlds", Content = "All worlds unlocked - stopping." }) break end unlockWorld(nxt) task.wait(2) end end) end, }) Rayfield:Notify({ Title = "Clicker Simulator - Fabron's Hub", Content = "Loaded. Auto Click is the main farm; Auto Hatch spends clicks into pets.", Duration = 6, })