- local times = 10
- local event = game:GetService("ReplicatedStorage").RemoteFunction
- local library = loadstring(game:HttpGet("https://raw.githubusercontent.com/banbuskox/dfhtyxvzexrxgfdzgzfdvfdz/main/jsdnfjdsfdjnsmvkjhlkslzLIB", true))()
- local w = library:CreateWindow("Auto Stack V2")
- local va = nil
- local mainpos = nil
- local Mouse = game.Players.LocalPlayer:GetMouse()
- w:Section("Stacking")
- local Toggle = w:Toggle('Stacking Enabled', {flag = "toggle1"})
- w:Slider("Amount",
- {
- precise = false,
- default = 10,
- min = 1,
- max = 15,
- },
- function(v)
- times = v
- end)
- w:Button("Set Main Pos", function()
- conn = Mouse.Button1Down:connect(function()
- mainpos = Mouse.Hit.p
- va.Text = "Status : Set"
- conn:Disconnect()
- end)
- end)
- w:Section('Status : Not Set')
- w:Section('')
- for i, v in pairs(game.CoreGui:GetDescendants()) do
- if v:IsA("TextLabel") and v.Text == "Status : Not Set" then
- va = v
- end
- end
- w:Button('Upgrade All', function()
- for i,v in pairs(game.Workspace.Towers:GetChildren()) do
- if v:WaitForChild("Owner").Value == game.Players.LocalPlayer then
- event:InvokeServer("Troops","Upgrade","Set",{["Troop"] = v})
- wait()
- end
- end
- end)
- w:Section('DANGER ZONE')
- w:Button('Sell All', function()
- for i,v in pairs(game.Workspace.Towers:GetChildren()) do
- if v:WaitForChild("Owner").Value == game.Players.LocalPlayer then
- event:InvokeServer("Troops","Sell",{["Troop"] = v})
- wait()
- end
- end
- end)
- local Events = {
- ["Troops"] = {
- ["Place"] = function(Tower, PositionData)
- if w.flags.toggle1 and not PositionData.CuntEmpire then
- if mainpos ~= nil then
- connection = game.Workspace.Towers.ChildAdded:Connect(function(v)
- connection:Disconnect()
- event:InvokeServer("Troops","Sell",{["Troop"] = v})
- wait()
- local roz = PositionData.Position-mainpos
- for c=1,times do
- event:InvokeServer("Troops","Place",Tower,{["Rotation"] = CFrame.new(roz.X,roz.Y,roz.Z),["Position"] = mainpos,["CuntEmpire"] = true})
- wait(0.1)
- end
- end)
- else
- va.Text = "Status : -> Not Set