local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))() local farmGoldRunning = false local troopLoops = {} local spellLoops = {} local Window = Rayfield:CreateWindow({ Name = "Mb Hub src leak -key system deleted", LoadingTitle = "loading", LoadingSubtitle = "by thirst (darkdex)", ConfigurationSaving = { Enabled = true, FolderName = nil, FileName = "MbHub" }, Discord = { Enabled = false, Invite = "GSTfEVvwDK", RememberJoins = true }, KeySystem = false, Theme = "Blue" }) local ReplicatedStorage = game:GetService("ReplicatedStorage") local MainTab = Window:CreateTab("Main", 4483362458) local FarmSection = MainTab:CreateSection("Gold Farm") local FarmGoldButton = MainTab:CreateButton({ Name = "Farm Gold", Callback = function() farmGoldRunning = true spawn(function() while farmGoldRunning do pcall(function() local args = { 200, 5000, 2000 } ReplicatedStorage:WaitForChild("Remotes"):WaitForChild("DistanceWalked"):FireServer(unpack(args)) local args = { 200, 5000, 2000 } ReplicatedStorage:WaitForChild("Remotes"):WaitForChild("DistanceWalked"):FireServer(unpack(args)) end) wait() end end) Rayfield:Notify({ Title = "Farm Gold", Content = "Gold farming started!", Duration = 3, Image = 4483362458 }) end, }) local StopFarmButton = MainTab:CreateButton({ Name = "Stop Farm", Callback = function() farmGoldRunning = false Rayfield:Notify({ Title = "Farm Gold", Content = "Gold farming stopped!", Duration = 3, Image = 4483362458 }) end, }) local TroopsTab = Window:CreateTab("Buy Troops", 4483362458) local function createTroopButton(name, itemName) local running = false TroopsTab:CreateButton({ Name = "Auto Buy " .. name .. " (ABT Stock)", Callback = function() running = true troopLoops[itemName] = true spawn(function() while troopLoops[itemName] do pcall(function() local PurchaseItem = ReplicatedStorage.Remotes.PurchaseItem PurchaseItem:FireServer(itemName, "Troops") end) wait(0.1) end end) Rayfield:Notify({ Title = "Auto Buy", Content = name .. " buying started!", Duration = 3, Image = 4483362458 }) end, }) TroopsTab:CreateButton({ Name = "Stop " .. name, Callback = function() troopLoops[itemName] = false Rayfield:Notify({ Title = "Auto Buy", Content = name .. " buying stopped!", Duration = 3, Image = 4483362458 }) end, }) end createTroopButton("Swordsman", "Swordsman") createTroopButton("Archer", "Archer") createTroopButton("Rookie Commander", "Rookie Commander") createTroopButton("Witch", "Witch") createTroopButton("Crossbow", "Crossbow") createTroopButton("Healer", "Healer") createTroopButton("Wizard", "Wizard") createTroopButton("Spearman", "Spearman") createTroopButton("Balloon", "Balloon") local SpellsTab = Window:CreateTab("Auto Buy Spells", 4483362458) local function createSpellButton(name, itemName) SpellsTab:CreateButton({ Name = "Auto Buy " .. name .. " (ABT Stock)", Callback = function() spellLoops[itemName] = true spawn(function() while spellLoops[itemName] do pcall(function() local PurchaseItem = ReplicatedStorage.Remotes.PurchaseItem PurchaseItem:FireServer(itemName, "Spells") end) wait(0.1) end end) Rayfield:Notify({ Title = "Auto Buy", Content = name .. " buying started!", Duration = 3, Image = 4483362458 }) end, }) SpellsTab:CreateButton({ Name = "Stop " .. name, Callback = function() spellLoops[itemName] = false Rayfield:Notify({ Title = "Auto Buy", Content = name .. " buying stopped!", Duration = 3, Image = 4483362458 }) end, }) end createSpellButton("Freeze", "Freeze") createSpellButton("Fireball", "Fireball") createSpellButton("Heal", "Heal") createSpellButton("Rage", "Rage") createSpellButton("Poison", "Poison") createSpellButton("Earth", "Earth") createSpellButton("Lightning", "Lightning") createSpellButton("Arthurs Sword", "Arthurs Sword") local DiscordTab = Window:CreateTab("Discord Server", 4483362458) DiscordTab:CreateButton({ Name = "Join Our Discord (Copy)", Callback = function() setclipboard("https://discord.gg/aqS2kye6HC") Rayfield:Notify({ Title = "Discord", Content = "Discord link copied to clipboard!", Duration = 5, Image = 4483362458 }) end, }) Rayfield:Notify({ Title = "Mb Hub Crack-Leak", Content = "Successfully loaded", Duration = 5, Image = 4483362458 })