TEXT 581
Merge Simulator Script - Auto Farm By venuslock on 25th October 2022 06:39:08 AM
  1. --Game Link: https://www.roblox.com/games/10925589760/RELEASE-Merge-Simulator
  2.  
  3. repeat task.wait(0.1) until game:IsLoaded()
  4.  
  5. local library = loadstring(game:HttpGet("https://raw.githubusercontent.com/RoseGoldIsntGay/Rosemoc/main/library.lua"))()
  6. local windowname = _G.windowname
  7.  
  8. local player = game.Players.LocalPlayer
  9. local plot = game.Workspace.Plots:FindFirstChild(player.Name)
  10. local replicated_storage = game.ReplicatedStorage
  11. local functions = {
  12.     tap = replicated_storage.Functions.Tap,
  13.     buy_upgrade = replicated_storage.Functions.BuyUpgrade,
  14.     rebirth = replicated_storage.Functions.Rebirth,
  15.     gem_upgrade = replicated_storage.Functions.GemUpgrade
  16. }
  17.  
  18. local conf = {
  19.     toggles = {
  20.         auto_click_boxes = false,
  21.         auto_merge = false,
  22.         auto_x2_frenzy = false,
  23.         auto_buy_upgrades = false,
  24.         auto_rebirth = false
  25.     }
  26. }
  27.  
  28. local temptable = {
  29.     connections = {},
  30.     start_time = tick(),
  31.     last_afk_click = tick(),
  32.     last_frenzy_activation = 0
  33. }
  34.  
  35. function getBlockOfLevel(block)
  36.     if not block or not block.Parent then return end
  37.     for _,v in pairs(plot.Blocks:GetChildren()) do
  38.         if v ~= block and v:FindFirstChild("Front") and v.Front:FindFirstChild("Number") and
  39.            block:FindFirstChild("Front") and block.Front:FindFirstChild("Number") and v.Front.Number.Text == block.Front.Number.Text then
  40.             return v
  41.         end
  42.     end
  43. end
  44.  
  45. function tapAllBlocks()
  46.     for _,v in pairs(plot.Blocks:GetChildren()) do
  47.         functions.tap:FireServer(v)
  48.     end
  49. end
  50.  
  51. local Config = {
  52.     WindowName = "Merge Simulator GUI by RoseGold",
  53.     Color = Color3.fromRGB(39, 133, 11),
  54.     Keybind = Enum.KeyCode.Semicolon
  55. }
  56.  
  57. local Window = library:CreateWindow(Config, game:GetService("CoreGui"))
  58.  
  59. local home_tab = Window:CreateTab("Home")
  60. local farming_tab = Window:CreateTab("Farming")
  61. local misc_tab = Window:CreateTab("Miscellaneous")
  62.  
  63. local home_main_section = home_tab:CreateSection("Main")
  64.  
  65. home_main_section:CreateButton("Exit", function()
  66.     conf = nil
  67.  
  68.     for _,connection in pairs(temptable.connections) do
  69.         connection:Disconnect()
  70.     end
  71.  
  72.     for _, v in pairs(game:GetService("CoreGui"):GetDescendants()) do
  73.         if v:IsA("TextLabel") and v.Text == Config.WindowName then
  74.             v.Parent.Parent:Destroy()
  75.         end
  76.     end
  77. end)
  78.  
  79. local auto_farming_section = farming_tab:CreateSection("Auto Farming")
  80.  
  81. auto_farming_section:CreateToggle("Auto Click Boxes", false, function(State)
  82.     conf.toggles.auto_click_boxes = State
  83. end)
  84.  
  85. auto_farming_section:CreateToggle("Auto Merge", false, function(State)
  86.     conf.toggles.auto_merge = State
  87. end)
  88.  
  89. auto_farming_section:CreateToggle("Auto x2 Frenzy", false, function(State)
  90.     conf.toggles.auto_x2_frenzy = State
  91. end)
  92.  
  93. auto_farming_section:CreateToggle("Auto Buy Upgrades", false, function(State)
  94.     conf.toggles.auto_buy_upgrades = State
  95. end)
  96.  
  97. auto_farming_section:CreateToggle("Auto Rebirth", false, function(State)
  98.     conf.toggles.auto_rebirth = State
  99. end)
  100.  
  101. task.spawn(function()
  102.     while task.wait() and conf do
  103.         if conf.toggles.auto_merge then
  104.             for _,block in pairs(plot.Blocks:GetChildren()) do
  105.                 local matching_block = getBlockOfLevel(block)
  106.                 if matching_block then
  107.                     block.CFrame = matching_block.CFrame
  108.                     block.Velocity = Vector3.new(0, 0, 0)
  109.                     task.wait(0.5)
  110.                 end
  111.             end
  112.         end
  113.     end
  114. end)
  115.  
  116. task.spawn(function()
  117.     while task.wait() and conf do
  118.         if tick() - 300 > temptable.last_afk_click then
  119.             game:GetService("VirtualUser"):CaptureController()
  120.             game:GetService("VirtualUser"):ClickButton2(Vector2.new())
  121.             temptable.last_afk_click = tick()
  122.         end
  123.         if conf.toggles.auto_click_boxes then
  124.             task.spawn(function()
  125.                 tapAllBlocks()
  126.             end)
  127.         end
  128.         if conf.toggles.auto_x2_frenzy and tick() - 60 > temptable.last_frenzy_activation and player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
  129.             local prev_location = player.Character.HumanoidRootPart.CFrame
  130.             player.Character.HumanoidRootPart.CFrame = CFrame.new(game.Workspace.Obby.Finish.Position)
  131.             temptable.last_frenzy_activation = tick() + 1
  132.             task.wait(0.2)
  133.             player.Character.HumanoidRootPart.CFrame = prev_location
  134.         end
  135.         if conf.toggles.auto_buy_upgrades then
  136.             functions.buy_upgrade:FireServer("Cooldown")
  137.             functions.buy_upgrade:FireServer("SpawnTier")
  138.             functions.buy_upgrade:FireServer("MaxBlocks")
  139.         end
  140.         if conf.toggles.auto_rebirth then
  141.             functions.rebirth:InvokeServer()
  142.             functions.gem_upgrade:FireServer("GemsMultiplier")
  143.         end
  144.     end
  145. end)

Texbin is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.