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



New Script | Raw | Show/Hide line no. | Copy text to clipboard
  1. stepstart = false
  2. local va = nil
  3. local event = game.ReplicatedStorage.RemoteFunction
  4. local library = loadstring(game:HttpGet("https://banbus.cf/Scripts/Library", true))()
  5. local w = library:CreateWindow('Place Anywhere')
  6. local Toggle = w:Button('Start', function()
  7. stepstart = true
  8. va.Text = 'Step 1'
  9. end)
  10. w:Section('Step 0')
  11. w:Section('')
  12. w:Button('Upgrade All', function()
  13. for i,v in pairs(game.Workspace.Towers:GetChildren()) do
  14.     if v:WaitForChild("Owner").Value == game.Players.LocalPlayer then
  15.         event:InvokeServer("Troops","Upgrade","Set",{["Troop"] = v})
  16.         wait()
  17.     end
  18. end
  19. end)
  20. w:Section('DANGER ZONE')
  21. w:Button('Sell All', function()
  22.     for i,v in pairs(game.Workspace.Towers:GetChildren()) do
  23.         if v:WaitForChild("Owner").Value == game.Players.LocalPlayer then
  24.             event:InvokeServer("Troops","Sell",{["Troop"] = v})
  25.             wait()
  26.         end
  27.     end
  28. end)
  29.   for i, v in pairs(game.CoreGui:GetDescendants()) do
  30.     if v:IsA("TextLabel") and v.Text == "Step 0" then
  31.         va = v
  32.     end
  33.   end
  34. step = 1
  35. local Mouse = game.Players.LocalPlayer:GetMouse()
  36. spawn(function()
  37.         conn = Mouse.Button1Down:connect(function()
  38.             if stepstart then
  39.                 if step == 1 then
  40.                         loc1 = Mouse.Hit.p
  41.                         step = 2
  42.                         va.Text = 'Step 2'
  43.                 elseif step == 2 then
  44.                         loc2 = Mouse.Hit.p
  45.                         local roz = loc2-loc1
  46.             event:InvokeServer("Troops","Place",getgenv().NextTower,{["Rotation"] = CFrame.new(roz.X,loc2.Y,roz.Z),["Position"] = loc1})
  47.             stepstart = false
  48.             va.Text = 'Step 0'
  49.             step = 1
  50.                 end
  51.     end
  52.         end)
  53. end)



  • Recent Roblox Scripts