Advertisement
Guest User

Tower Defense Simulator Script

a guest
Nov 6th, 2022
3,717
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.64 KB | None | 1 0
  1. --Uploaded On https://youtube.com/AhmedMode
  2. --Published on https://ahmedmode.com
  3. --Credits goes to the devs!
  4. --Scripts Below:
  5.  
  6. --Script
  7.  
  8. --First Script:
  9.  
  10. local TowersUHave = {}
  11. for i,v in next, game:GetService("ReplicatedStorage").RemoteFunction:InvokeServer("Session", "Search", "Inventory.Troops") do
  12. if v.Equipped then
  13. table.insert(TowersUHave, i)
  14. end
  15. end
  16. wait(1)
  17. local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/xHeptc/Kavo-UI-Library/main/source.lua"))()
  18. local Window = Library.CreateLib("Vtds hub Beta 4.0", "BloodTheme")
  19. local Credits = Window:NewTab("Others")
  20. local Lobby = Window:NewTab("Game")
  21. local AutoChain = Lobby:NewSection("AutoAbility")
  22. local turn = false
  23. local CreditsBar = Credits:NewSection("Credits")
  24. CreditsBar:NewLabel("bianhquan12345/bianhquan12345#7794: owner script")
  25. CreditsBar:NewLabel("vinhkhang100/Khang#3082: Others")
  26.  
  27.  
  28.  
  29. local Stack = Lobby:NewSection("Stack")
  30. Stack:NewTextBox("TowerNameHere", "Make sure u stand in the position u want to place", function(txt)
  31. local args = {
  32. [1] = "Troops",
  33. [2] = "Place",
  34. [3] = txt,
  35. [4] = {
  36. ["Rotation"] = CFrame.new(0,5,0,0,5,0,0,5,0,0,5,0),
  37. ["Position"] = game.Players.LocalPlayer.character.HumanoidRootPart.Position - Vector3.new(0,5,0)
  38. }
  39. }
  40.  
  41. game:GetService("ReplicatedStorage").RemoteFunction:InvokeServer(unpack(args))
  42. end)
  43. local Lobbyl = Window:NewTab("Lobby")
  44. local LeaderBoard = Lobbyl:NewSection("Lobby")
  45.  
  46. LeaderBoard:NewButton("Update leader board", "This will update the leader board", function()
  47.  
  48. local A_1 = "Leaderboard"
  49. local A_2 = "Request"
  50. local Event = game:GetService("ReplicatedStorage").RemoteFunction
  51. Event:InvokeServer(A_1, A_2)
  52.  
  53. end)
  54. local Selling = Lobby:NewSection("Selling")
  55. Selling:NewButton("Sell all towers", "ok", function()
  56. for index,value in pairs(game.Workspace.Towers:GetChildren()) do
  57. -- Script generated by R2Sv2
  58. -- R2Sv2 developed by Luckyxero
  59.  
  60. local A_1 = "Troops"
  61. local A_2 = "Sell"
  62. local A_3 =
  63. {
  64. ["Troop"] = value
  65. }
  66. local Event = game:GetService("ReplicatedStorage").RemoteFunction
  67. Event:InvokeServer(A_1, A_2, A_3)
  68.  
  69. end
  70. wait()
  71. end)
  72.  
  73.  
  74. Selling:NewTextBox("SellAllTowersName", "ok", function(txt)
  75. for index,value in pairs(game.Workspace.Towers:GetChildren()) do
  76. if value.Replicator:GetAttribute("Type") == txt then
  77.  
  78.  
  79.  
  80. local A_1 = "Troops"
  81. local A_2 = "Sell"
  82. local A_3 =
  83. {
  84. ["Troop"] = value
  85. }
  86. local Event = game:GetService("ReplicatedStorage").RemoteFunction
  87. Event:InvokeServer(A_1, A_2, A_3)
  88. end
  89. wait()
  90. end
  91.  
  92.  
  93. end)
  94. Stack:NewButton("Place weird ace pilot", "This is only work for some map", function()
  95. local A_1 = "Troops"
  96. local A_2 = "Place"
  97. local A_3 = "Ace Pilot"
  98. local A_4 =
  99. {
  100. ["Rotation"] = CFrame.new(0,5,0,0,0,0,0,0,0,0,-90,-90),
  101. ["Position"] = game.Players.LocalPlayer.character.HumanoidRootPart.Position - Vector3.new(0,5,0)
  102. }
  103. local Event = game:GetService("ReplicatedStorage").RemoteFunction
  104. Event:InvokeServer(A_1, A_2, A_3, A_4)
  105. end)
  106.  
  107. Stack:NewButton("Place weird pursuit", "Same as the ace pilot", function()
  108. local A_1 = "Troops"
  109. local A_2 = "Place"
  110. local A_3 = "Pursuit"
  111. local A_4 =
  112. {
  113. ["Rotation"] = CFrame.new(0,5,0,0,0,0,0,0,0,0,-90,-90),
  114. ["Position"] = game.Players.LocalPlayer.character.HumanoidRootPart.Position - Vector3.new(0,5,0)
  115. }
  116. local Event = game:GetService("ReplicatedStorage").RemoteFunction
  117. Event:InvokeServer(A_1, A_2, A_3, A_4)
  118. end)
  119. Stack:NewButton("Place weird ace pilot2", "For lay by i guess lol", function()
  120. local A_1 = "Troops"
  121. local A_2 = "Place"
  122. local A_3 = "Ace Pilot"
  123. local A_4 =
  124. {
  125. ["Rotation"] = CFrame.new(0,5,0,0,0,90,-90),
  126. ["Position"] = game.Players.LocalPlayer.character.HumanoidRootPart.Position - Vector3.new(0,5,0)
  127. }
  128. local Event = game:GetService("ReplicatedStorage").RemoteFunction
  129. Event:InvokeServer(A_1, A_2, A_3, A_4)
  130. end)
  131. Stack:NewButton("Place weird pursuit2", "For lay by i guess lol", function()
  132. local A_1 = "Troops"
  133. local A_2 = "Place"
  134. local A_3 = "Pursuit"
  135. local A_4 =
  136. {
  137. ["Rotation"] = CFrame.new(0,5,0,0,0,90,-90),
  138. ["Position"] = game.Players.LocalPlayer.character.HumanoidRootPart.Position - Vector3.new(0,5,0)
  139. }
  140. local Event = game:GetService("ReplicatedStorage").RemoteFunction
  141. Event:InvokeServer(A_1, A_2, A_3, A_4)
  142. end)
  143. local Check = 0 local Skipping = Lobby:NewSection("Skipping") Skipping:NewKeybind("SkipKey", "Breh", Enum.KeyCode.F, function() local args = { [1] = "Waves", [2] = "Skip" }
  144.  
  145. game:GetService("ReplicatedStorage").RemoteFunction:InvokeServer(unpack(args)) end) local CheckEd = false
  146.  
  147. local lolc = false
  148.  
  149. AutoChain:NewButton("AutoChain", "Make sure u have at least 3 lv 2 plus commanders", function()
  150.  
  151. while true do
  152. for index,value in pairs(game.Workspace.Towers:GetChildren()) do if value.Owner.Value == game.Players.LocalPlayer and value.Replicator:GetAttribute("Type") == "Commander" then local args = { [1] = "Troops", [2] = "Abilities", [3] = "Activate", [4] = { ["Name"] = "Call Of Arms", ["Troop"] = value } }
  153.  
  154. game:GetService("ReplicatedStorage").RemoteFunction:InvokeServer(unpack(args))
  155. wait(10.1)
  156. end
  157. end
  158.  
  159. end
  160.  
  161. end)
  162. Stack:NewDropdown("StackTower", "Alt of stack tower name", TowersUHave, function(currentOption)
  163. local A_1 = "Troops"
  164. local A_2 = "Place"
  165. local A_3 = currentOption
  166. local A_4 =
  167. {
  168. ["Rotation"] = CFrame.new(0,5,0),
  169. ["Position"] = game.Players.LocalPlayer.character.HumanoidRootPart.Position - Vector3.new(0,5,0)
  170. }
  171. local Event = game:GetService("ReplicatedStorage").RemoteFunction
  172. Event:InvokeServer(A_1, A_2, A_3, A_4)
  173. end)
  174. local CopyDiscordServerLink = Credits:NewSection("Copy Discord server link")
  175. CopyDiscordServerLink:NewButton("Copy", "Why don't you even understand this?", function()
  176. setclipboard("https://discord.gg/yEBheZxfN7")
  177. end)
  178. local ok = game.Players.LocalPlayer.PlayerGui.GameGui.Health.Wave
  179. Selling:NewButton("Sell all Farms", "breh??ssđssd", function()
  180. local wo = game.Workspace.Towers:GetChildren()
  181. for i,v in pairs(wo) do
  182. if v.Owner.Value == game.Players.LocalPlayer and v.Replicator:GetAttribute("Type") == "Farm" then
  183. local A_1 = "Troops"
  184. local A_2 = "Sell"
  185. local A_3 =
  186. {
  187. ["Troop"] = v
  188. }
  189. local Event = game:GetService("ReplicatedStorage").RemoteFunction
  190. Event:InvokeServer(A_1, A_2, A_3)
  191.  
  192. wait()
  193.  
  194. end
  195. end
  196. end)
  197. local DmCheck = false
  198.  
  199. AutoChain:NewToggle("Spam Medic ability", "Breh", function(state)
  200. if state then
  201. DmCheck = true
  202. else
  203. DmCheck = false
  204. end
  205. end)
  206. while wait(1) do
  207. if DmCheck == true then
  208. local args = {
  209. [1] = "Troops",
  210. [2] = "Place",
  211. [3] = "Medic",
  212. [4] = {
  213. ["Rotation"] = CFrame.new(Vector3.new(0, 0, 0), Vector3.new(-0, -0, -1)),
  214. ["Position"] = game.Players.LocalPlayer.character.HumanoidRootPart.Position - Vector3.new(0,5,0)
  215. }
  216. }
  217. local Dmagain = game.Workspace.Towers:GetChildren()
  218. game:GetService("ReplicatedStorage").RemoteFunction:InvokeServer(unpack(args))
  219. for i,v in pairs(Dmagain) do
  220. if v.Owner.Value == game.Players.LocalPlayer and v.Replicator:GetAttribute("Type") == "Medic" then
  221. local args = {
  222. [1] = "Troops",
  223. [2] = "Upgrade",
  224. [3] = "Set",
  225. [4] = {
  226. ["Troop"] = v
  227. }
  228. }
  229.  
  230. game:GetService("ReplicatedStorage").RemoteFunction:InvokeServer(unpack(args))
  231. local args = {
  232. [1] = "Troops",
  233. [2] = "Upgrade",
  234. [3] = "Set",
  235. [4] = {
  236. ["Troop"] = v
  237. }
  238. }
  239.  
  240. game:GetService("ReplicatedStorage").RemoteFunction:InvokeServer(unpack(args))
  241. local args = {
  242. [1] = "Troops",
  243. [2] = "Upgrade",
  244. [3] = "Set",
  245. [4] = {
  246. ["Troop"] = v
  247. }
  248. }
  249.  
  250. game:GetService("ReplicatedStorage").RemoteFunction:InvokeServer(unpack(args))
  251. local args = {
  252. [1] = "Troops",
  253. [2] = "Upgrade",
  254. [3] = "Set",
  255. [4] = {
  256. ["Troop"] = v
  257. }
  258. }
  259.  
  260. game:GetService("ReplicatedStorage").RemoteFunction:InvokeServer(unpack(args))
  261. local args = {
  262. [1] = "Troops",
  263. [2] = "Upgrade",
  264. [3] = "Set",
  265. [4] = {
  266. ["Troop"] = v
  267. }
  268. }
  269.  
  270. game:GetService("ReplicatedStorage").RemoteFunction:InvokeServer(unpack(args))
  271. wait(0.5)
  272. local args = {
  273. [1] = "Troops",
  274. [2] = "Abilities",
  275. [3] = "Activate",
  276. [4] = {
  277. ["Name"] = "Cleansing",
  278. ["Troop"] = v
  279. }
  280. }
  281.  
  282. game:GetService("ReplicatedStorage").RemoteFunction:InvokeServer(unpack(args))
  283. wait(0.1)
  284. local args = {
  285. [1] = "Troops",
  286. [2] = "Sell",
  287. [3] = {
  288. ["Troop"] = v
  289. }
  290. }
  291.  
  292. game:GetService("ReplicatedStorage").RemoteFunction:InvokeServer(unpack(args))
  293. end
  294. end
  295. end
  296. end
  297.  
  298. LeaderBoard:NewButton("ButtonText", "ButtonInfo", function()
  299. print("Clicked")
  300. end)
  301.  
  302.  
  303.  
  304. ______________________________________________________________________________
  305.  
  306.  
  307. --Second Script:
  308.  
  309. local TDS = loadstring(game:HttpGet("https://raw.githubusercontent.com/banbuskox/dfhtyxvzexrxgfdzgzfdvfdz/main/ckmhjvskfkmsStratFun2", true))()
  310. TDS:Loadout("Scout", "Sniper", "nil", "nil", "nil")
  311. TDS:Map("Autumn Falling", true, "Survival")
  312. TDS:Mode('Normal')
  313. TDS:Place('Scout', -41.343967437744, 3.0023679733276, 0.6797342300415, 1, 0, 57)
  314. TDS:Upgrade(1, 1, 0, 56)
  315. TDS:Upgrade(1, 1, 0, 55)
  316. TDS:Place('Scout', -34.935607910156, 3.0024552345276, 2.8598260879517, 2, 0, 52)
  317. TDS:Upgrade(2, 2, 0, 50)
  318. TDS:Upgrade(2, 2, 0, 3)
  319. TDS:Upgrade(2, 4, 0, 4)
  320. TDS:Upgrade(1, 6, 0, 58)
  321. TDS:Place('Scout', -34.867561340332, 3.0048241615295, -0.2752161026001, 6, 0, 4)
  322. TDS:Place('Scout', -34.85572052002, 2.2458710670471, 6.0150465965271, 7, 0, 58)
  323. TDS:Place('Scout', -31.816738128662, 2.2458720207214, 5.0957360267639, 7, 0, 50)
  324. TDS:Place('Scout', -31.678031921387, 2.2224938869476, 8.0997333526611, 8, 0, 56)
  325. TDS:Upgrade(3, 8, 0, 53)
  326. TDS:Upgrade(3, 8, 0, 52)
  327. TDS:Upgrade(3, 9, 0, 57)
  328. TDS:Upgrade(5, 9, 0, 55)
  329. TDS:Upgrade(5, 9, 0, 55)
  330. TDS:Upgrade(4, 10, 0, 59)
  331. TDS:Upgrade(4, 10, 0, 58)
  332. TDS:Upgrade(6, 10, 0, 55)
  333. TDS:Upgrade(6, 10, 0, 54)
  334. TDS:Upgrade(4, 10, 0, 3)
  335. TDS:Place('Sniper', -21.369630813599, 6.1764059066772, 0.31809794902802, 11, 0, 47)
  336. TDS:Upgrade(7, 11, 0, 45)
  337. TDS:Upgrade(7, 11, 0, 3)
  338. TDS:Upgrade(5, 12, 0, 45)
  339. TDS:Upgrade(6, 12, 0, 3)
  340. TDS:Place('Sniper', -21.063768386841, 6.1793580055237, 3.4187164306641, 13, 0, 55)
  341. TDS:Upgrade(8, 13, 0, 53)
  342. TDS:Upgrade(8, 13, 0, 4)
  343. TDS:Place('Scout', -31.836868286133, 3.0020725727081, 3.043625831604, 14, 0, 57)
  344. TDS:Place('Scout', -31.789745330811, 3.0045719146729, 0.022478103637695, 14, 0, 50)
  345. TDS:Place('Scout', -34.945415496826, 3.0043683052063, -3.3602828979492, 14, 0, 46)
  346. TDS:Place('Scout', -31.817302703857, 3.0045719146729, -3.0682377815247, 14, 0, 43)
  347. TDS:Upgrade(7, 14, 0, 3)
  348. TDS:Upgrade(10, 15, 0, 54)
  349. TDS:Upgrade(12, 15, 0, 52)
  350. TDS:Upgrade(9, 15, 0, 51)
  351. TDS:Upgrade(8, 16, 0, 54)
  352. TDS:Place('Sniper', -19.040802001953, 6.1738600730896, -2.7078275680542, 17, 0, 47)
  353. TDS:Upgrade(13, 17, 0, 44)
  354. TDS:Upgrade(13, 17, 0, 43)
  355. TDS:Upgrade(13, 18, 0, 58)
  356. TDS:Upgrade(11, 18, 0, 52)
  357. TDS:Upgrade(9, 18, 0, 47)
  358. TDS:Upgrade(10, 18, 0, 44)
  359. TDS:Place('Sniper', -17.984052658081, 6.1767582893372, 1.5586576461792, 19, 0, 56)
  360. TDS:Place('Sniper', -17.990505218506, 6.1792306900024, 4.6238374710083, 19, 0, 51)
  361. TDS:Upgrade(15, 19, 0, 49)
  362. TDS:Upgrade(15, 19, 0, 48)
  363. TDS:Upgrade(14, 19, 0, 45)
  364. TDS:Upgrade(14, 19, 0, 34)
  365. TDS:Upgrade(2, 19, 0, 2)
  366. TDS:Place('Sniper', -14.898565292358, 6.1761355400085, 2.4734437465668, 20, 0, 45)
  367. TDS:Upgrade(16, 20, 0, 43)
  368. TDS:Upgrade(16, 20, 0, 3)
  369. TDS:Upgrade(9, 21, 0, 56)
  370. TDS:Skip(21, 0, 37)
  371. TDS:Upgrade(10, 21, 0, 3)
  372. TDS:Upgrade(12, 22, 0, 58)
  373. TDS:Upgrade(12, 22, 0, 57)
  374. TDS:Upgrade(11, 22, 0, 56)
  375. TDS:Upgrade(11, 22, 0, 55)
  376. TDS:Upgrade(14, 22, 0, 8)
  377. TDS:Upgrade(15, 22, 0, 3)
  378. TDS:Upgrade(16, 23, 0, 46)
  379. TDS:Upgrade(9, 23, 0, 23)
  380. TDS:Upgrade(10, 23, 0, 3)
  381. TDS:Upgrade(3, 24, 0, 4)
  382. TDS:Upgrade(1, 26, 0, 58)
  383. TDS:Upgrade(12, 26, 0, 55)
  384. TDS:Upgrade(11, 26, 0, 49)
  385. TDS:Upgrade(4, 26, 0, 3)
  386. TDS:Upgrade(7, 27, 0, 5)
  387. TDS:Upgrade(8, 28, 0, 20)
  388. TDS:Upgrade(13, 29, 0, 44)
  389. TDS:Upgrade(14, 30, 1, 18)
  390. TDS:Upgrade(5, 30, 1, 6)
  391. TDS:Upgrade(6, 30, 0, 51)
  392. TDS:Upgrade(15, 31, 1, 19)
  393. TDS:Upgrade(16, 31, 0, 41)
  394. TDS:Place('Scout', -22.914464950562, 3.0045721530914, -2.7904424667358, 31, 0, 31)
  395. TDS:Upgrade(17, 31, 0, 29)
  396. TDS:Upgrade(17, 31, 0, 28)
  397. TDS:Upgrade(17, 31, 0, 27)
  398. TDS:Upgrade(17, 31, 0, 19)
  399. TDS:Place('Scout', -0.69402933120728, 3.004864692688, 2.5758056640625, 31, 0, 1)
  400. TDS:Upgrade(18, 32, 0, 1)
  401. TDS:Upgrade(18, 32, 1, 19)
  402. TDS:Upgrade(18, 32, 1, 19)
  403. TDS:Upgrade(18, 32, 1, 18)
  404. TDS:Place('Scout', 2.6734616756439, 3.0048666000366, 2.6611852645874, 32, 1, 11)
  405. TDS:Upgrade(19, 32, 1, 9)
  406. TDS:Upgrade(19, 32, 1, 9)
  407. TDS:Upgrade(19, 32, 1, 8)
  408. TDS:Upgrade(19, 32, 1, 6)
  409. TDS:Sell(18, 32, 1, 2)
  410. TDS:Sell(19, 32, 1, 0)
  411. TDS:Place('Scout', -29.170017242432, 3.0045721530914, -6.2040448188782, 32, 0, 36)
  412. TDS:Upgrade(20, 32, 0, 35)
  413. TDS:Upgrade(20, 32, 0, 34)
  414. TDS:Upgrade(20, 32, 0, 33)
  415. TDS:Upgrade(20, 32, 0, 33)
  416. TDS:Place('Scout', -32.392528533936, 3.0045721530914, -6.4256181716919, 32, 0, 28)
  417. TDS:Upgrade(21, 32, 0, 27)
  418. TDS:Upgrade(21, 32, 0, 26)
  419. TDS:Upgrade(21, 32, 0, 25)
  420. TDS:Upgrade(21, 32, 0, 24)
  421. TDS:Place('Sniper', -47.423664093018, 5.3464403152466, 7.5510640144348, 32, 0, 12)
  422. TDS:Upgrade(22, 32, 0, 11)
  423. TDS:Upgrade(22, 32, 0, 11)
  424. TDS:Upgrade(22, 32, 0, 10)
  425. TDS:Upgrade(22, 33, 1, 9)
  426. TDS:Place('Scout', 25.751207351685, 3.0047087669373, 17.466114044189, 33, 0, 10)
  427. TDS:Upgrade(23, 33, 0, 10)
  428. TDS:Upgrade(23, 33, 0, 9)
  429. TDS:Upgrade(23, 33, 0, 9)
  430. TDS:Upgrade(23, 33, 0, 9)
  431. TDS:Place('Scout', 27.373392105103, 3.0049204826355, 27.048875808716, 33, 0, 7)
  432. TDS:Upgrade(24, 33, 0, 6)
  433. TDS:Upgrade(24, 33, 0, 6)
  434. TDS:Upgrade(24, 33, 0, 6)
  435. TDS:Upgrade(24, 33, 0, 6)
  436. TDS:Upgrade(24, 33, 0, 6)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement