The text below is selected, press Ctrl+C to copy to your clipboard. (⌘+C on Mac) No line numbers will be copied.
Guest
Auto Stack V2 [TDS] script pastebin roblox
By Auto Stack V2 [TDS] on 2024-09-21 08:00 am | Syntax: LUA | Views: 8



New Script | Raw | Show/Hide line no. | Copy text to clipboard
  1. local times = 10
  2. local event = game:GetService("ReplicatedStorage").RemoteFunction
  3. local library = loadstring(game:HttpGet("https://raw.githubusercontent.com/banbuskox/dfhtyxvzexrxgfdzgzfdvfdz/main/jsdnfjdsfdjnsmvkjhlkslzLIB", true))()
  4. local w = library:CreateWindow("Auto Stack V2")
  5. local va = nil
  6. local mainpos = nil
  7. local Mouse = game.Players.LocalPlayer:GetMouse()
  8. w:Section("Stacking")
  9. local Toggle = w:Toggle('Stacking Enabled', {flag = "toggle1"})
  10. w:Slider("Amount",
  11.     {
  12.         precise = false,
  13.         default = 10,
  14.         min = 1,
  15.         max = 15,
  16.     },
  17. function(v)
  18.         times = v
  19. end)
  20. w:Button("Set Main Pos", function()
  21. conn = Mouse.Button1Down:connect(function()
  22.     mainpos = Mouse.Hit.p
  23.     va.Text = "Status : Set"
  24.     conn:Disconnect()
  25. end)
  26. end)
  27. w:Section('Status : Not Set')
  28. w:Section('')
  29. for i, v in pairs(game.CoreGui:GetDescendants()) do
  30.     if v:IsA("TextLabel") and v.Text == "Status : Not Set" then
  31.         va = v
  32.     end
  33. end
  34. w:Button('Upgrade All', function()
  35. for i,v in pairs(game.Workspace.Towers:GetChildren()) do
  36.     if v:WaitForChild("Owner").Value == game.Players.LocalPlayer then
  37.         event:InvokeServer("Troops","Upgrade","Set",{["Troop"] = v})
  38.         wait()
  39.     end
  40. end
  41. end)
  42. w:Section('DANGER ZONE')
  43. w:Button('Sell All', function()
  44.     for i,v in pairs(game.Workspace.Towers:GetChildren()) do
  45.         if v:WaitForChild("Owner").Value == game.Players.LocalPlayer then
  46.             event:InvokeServer("Troops","Sell",{["Troop"] = v})
  47.             wait()
  48.         end
  49.     end
  50. end)
  51.  
  52. local Events = {
  53.     ["Troops"] = {
  54.         ["Place"] = function(Tower, PositionData)
  55.             if w.flags.toggle1 and not PositionData.CuntEmpire then
  56.                 if mainpos ~= nil then
  57.                 connection = game.Workspace.Towers.ChildAdded:Connect(function(v)
  58.                     connection:Disconnect()
  59.                     event:InvokeServer("Troops","Sell",{["Troop"] = v})
  60.                     wait()
  61.                     local roz = PositionData.Position-mainpos
  62.                     for c=1,times do
  63.                         event:InvokeServer("Troops","Place",Tower,{["Rotation"] = CFrame.new(roz.X,roz.Y,roz.Z),["Position"] = mainpos,["CuntEmpire"] = true})
  64.                         wait(0.1)
  65.                     end
  66.                 end)
  67.                 else
  68.                     va.Text = "Status : -> Not Set