Advertisement
Guest User

EasyTB

a guest
Feb 19th, 2020
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 19.76 KB | None | 0 0
  1. if game.Players.LocalPlayer.PlayerGui:FindFirstChild("EasyTB") then
  2.     game.Players.LocalPlayer.PlayerGui:FindFirstChild("EasyTB"):Destroy()
  3. end
  4.  
  5. local EasyTB = Instance.new("ScreenGui")
  6. local MainFrame = Instance.new("Frame")
  7. local Credits = Instance.new("Frame")
  8. local Label = Instance.new("TextLabel")
  9. local CloseButton = Instance.new("TextButton")
  10. local CRD1 = Instance.new("TextLabel")
  11. local CRD2 = Instance.new("TextLabel")
  12. local Buttons = Instance.new("Frame")
  13. local UIGridLayout = Instance.new("UIGridLayout")
  14. local CreditsBTN = Instance.new("TextButton")
  15. local TowerSpawn = Instance.new("Frame")
  16. local SpawnTower1 = Instance.new("TextButton")
  17. local Key = Instance.new("TextButton")
  18. local SpawnTower2 = Instance.new("TextButton")
  19. local Key_2 = Instance.new("TextButton")
  20. local UIGridLayout_2 = Instance.new("UIGridLayout")
  21. local SpawnTower3 = Instance.new("TextButton")
  22. local Key_3 = Instance.new("TextButton")
  23. local SpawnTower4 = Instance.new("TextButton")
  24. local Key_4 = Instance.new("TextButton")
  25. local SpawnTower5 = Instance.new("TextButton")
  26. local Key_5 = Instance.new("TextButton")
  27. local KeyBinds = Instance.new("Frame")
  28. local UpgrageAllTowers = Instance.new("TextButton")
  29. local Key_6 = Instance.new("TextButton")
  30. local UIGridLayout_3 = Instance.new("UIGridLayout")
  31. local SellAllTowers = Instance.new("TextButton")
  32. local Key_7 = Instance.new("TextButton")
  33. local MakeTowersYour = Instance.new("TextButton")
  34. local Key_8 = Instance.new("TextButton")
  35. local CloseButton_2 = Instance.new("TextButton")
  36. local Label_2 = Instance.new("TextLabel")
  37. local null = Instance.new("TextLabel")
  38. local null_2 = Instance.new("TextLabel")
  39.  
  40. --Properties:
  41.  
  42. EasyTB.Name = "EasyTB"
  43. EasyTB.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  44.  
  45. MainFrame.Name = "MainFrame"
  46. MainFrame.Parent = EasyTB
  47. MainFrame.BackgroundColor3 = Color3.fromRGB(125, 197, 223)
  48. MainFrame.BorderSizePixel = 0
  49. MainFrame.Position = UDim2.new(0.699999988, 0, 0.25, 0)
  50. MainFrame.Size = UDim2.new(0.200000003, 0, 0.400000006, 0)
  51.  
  52. Credits.Name = "Credits"
  53. Credits.Parent = MainFrame
  54. Credits.BackgroundColor3 = Color3.fromRGB(125, 197, 223)
  55. Credits.BorderSizePixel = 0
  56. Credits.Size = UDim2.new(1, 0, 1, 0)
  57. Credits.Visible = false
  58.  
  59. Label.Name = "Label"
  60. Label.Parent = Credits
  61. Label.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  62. Label.BackgroundTransparency = 1.000
  63. Label.BorderSizePixel = 0
  64. Label.Position = UDim2.new(0.0799999982, 0, 0.00999999978, 0)
  65. Label.Size = UDim2.new(0.603960395, 0, 0.0785947591, 0)
  66. Label.Font = Enum.Font.GothamBlack
  67. Label.Text = "Credits"
  68. Label.TextColor3 = Color3.fromRGB(255, 255, 255)
  69. Label.TextScaled = true
  70. Label.TextSize = 14.000
  71. Label.TextWrapped = true
  72.  
  73. CloseButton.Name = "CloseButton"
  74. CloseButton.Parent = Credits
  75. CloseButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  76. CloseButton.BackgroundTransparency = 1.000
  77. CloseButton.BorderSizePixel = 0
  78. CloseButton.Position = UDim2.new(0.930000007, 0, 0.0199999996, 0)
  79. CloseButton.Size = UDim2.new(0.0599999987, 0, 0.0500000007, 0)
  80. CloseButton.Font = Enum.Font.GothamBlack
  81. CloseButton.Text = "X"
  82. CloseButton.TextColor3 = Color3.fromRGB(255, 0, 0)
  83. CloseButton.TextScaled = true
  84. CloseButton.TextSize = 14.000
  85. CloseButton.TextWrapped = true
  86.  
  87. CRD1.Name = "CRD1"
  88. CRD1.Parent = Credits
  89. CRD1.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  90. CRD1.BackgroundTransparency = 1.000
  91. CRD1.BorderSizePixel = 0
  92. CRD1.Position = UDim2.new(0.100000061, 0, 0.200000018, 0)
  93. CRD1.Size = UDim2.new(0.829999864, 0, 0.0785947591, 0)
  94. CRD1.Font = Enum.Font.GothamBlack
  95. CRD1.Text = "DragonMan845 - Scripter"
  96. CRD1.TextColor3 = Color3.fromRGB(255, 255, 255)
  97. CRD1.TextScaled = true
  98. CRD1.TextSize = 14.000
  99. CRD1.TextWrapped = true
  100.  
  101. CRD2.Name = "CRD2"
  102. CRD2.Parent = Credits
  103. CRD2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  104. CRD2.BackgroundTransparency = 1.000
  105. CRD2.BorderSizePixel = 0
  106. CRD2.Position = UDim2.new(0.100000061, 0, 0.300000012, 0)
  107. CRD2.Size = UDim2.new(0.829999864, 0, 0.143134847, 0)
  108. CRD2.Font = Enum.Font.GothamBlack
  109. CRD2.Text = "Cube46 - Without him it wouldn't be possible."
  110. CRD2.TextColor3 = Color3.fromRGB(255, 255, 255)
  111. CRD2.TextScaled = true
  112. CRD2.TextSize = 14.000
  113. CRD2.TextWrapped = true
  114.  
  115. Buttons.Name = "Buttons"
  116. Buttons.Parent = MainFrame
  117. Buttons.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  118. Buttons.BackgroundTransparency = 1.000
  119. Buttons.Position = UDim2.new(0, 0, 1.20349669, -100)
  120. Buttons.Size = UDim2.new(0, 202, 0, 50)
  121.  
  122. UIGridLayout.Parent = Buttons
  123. UIGridLayout.FillDirection = Enum.FillDirection.Vertical
  124. UIGridLayout.SortOrder = Enum.SortOrder.LayoutOrder
  125. UIGridLayout.CellSize = UDim2.new(0.485000014, 0, 0.400000006, 0)
  126. UIGridLayout.FillDirectionMaxCells = 1
  127.  
  128. CreditsBTN.Name = "CreditsBTN"
  129. CreditsBTN.Parent = Buttons
  130. CreditsBTN.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  131. CreditsBTN.BackgroundTransparency = 0.900
  132. CreditsBTN.Size = UDim2.new(0, 200, 0, 50)
  133. CreditsBTN.Font = Enum.Font.GothamBlack
  134. CreditsBTN.Text = "Credits"
  135. CreditsBTN.TextColor3 = Color3.fromRGB(3, 26, 176)
  136. CreditsBTN.TextScaled = true
  137. CreditsBTN.TextSize = 14.000
  138. CreditsBTN.TextWrapped = true
  139.  
  140. TowerSpawn.Name = "TowerSpawn"
  141. TowerSpawn.Parent = MainFrame
  142. TowerSpawn.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  143. TowerSpawn.BackgroundTransparency = 1.000
  144. TowerSpawn.Position = UDim2.new(0, 0, 0.113104589, 0)
  145. TowerSpawn.Size = UDim2.new(1, 0, 0.886895537, 0)
  146.  
  147. SpawnTower1.Name = "SpawnTower1"
  148. SpawnTower1.Parent = TowerSpawn
  149. SpawnTower1.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  150. SpawnTower1.BackgroundTransparency = 0.900
  151. SpawnTower1.BorderColor3 = Color3.fromRGB(27, 42, 53)
  152. SpawnTower1.Position = UDim2.new(0.0800001696, 0, 0.0499999672, 0)
  153. SpawnTower1.Size = UDim2.new(0.849999785, 0, 0.0500000007, 0)
  154. SpawnTower1.Font = Enum.Font.SourceSansBold
  155. SpawnTower1.Text = "Spawn Tower 1"
  156. SpawnTower1.TextColor3 = Color3.fromRGB(0, 0, 0)
  157. SpawnTower1.TextScaled = true
  158. SpawnTower1.TextSize = 14.000
  159. SpawnTower1.TextWrapped = true
  160. SpawnTower1.TextXAlignment = Enum.TextXAlignment.Left
  161.  
  162. Key.Name = "Key"
  163. Key.Parent = SpawnTower1
  164. Key.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  165. Key.BackgroundTransparency = 1.000
  166. Key.Position = UDim2.new(0.800000012, 0, 0, 0)
  167. Key.Size = UDim2.new(0.13395454, 0, 1, 0)
  168. Key.Font = Enum.Font.GothamBlack
  169. Key.Text = "Key: 1"
  170. Key.TextColor3 = Color3.fromRGB(255, 255, 0)
  171. Key.TextScaled = true
  172. Key.TextSize = 14.000
  173. Key.TextWrapped = true
  174.  
  175. SpawnTower2.Name = "SpawnTower2"
  176. SpawnTower2.Parent = TowerSpawn
  177. SpawnTower2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  178. SpawnTower2.BackgroundTransparency = 0.900
  179. SpawnTower2.BorderColor3 = Color3.fromRGB(27, 42, 53)
  180. SpawnTower2.Position = UDim2.new(0.0800001696, 0, 0.0499999672, 0)
  181. SpawnTower2.Size = UDim2.new(0.849999785, 0, 0.0500000007, 0)
  182. SpawnTower2.Font = Enum.Font.SourceSansBold
  183. SpawnTower2.Text = "Spawn Tower 2"
  184. SpawnTower2.TextColor3 = Color3.fromRGB(0, 0, 0)
  185. SpawnTower2.TextScaled = true
  186. SpawnTower2.TextSize = 14.000
  187. SpawnTower2.TextWrapped = true
  188. SpawnTower2.TextXAlignment = Enum.TextXAlignment.Left
  189.  
  190. Key_2.Name = "Key"
  191. Key_2.Parent = SpawnTower2
  192. Key_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  193. Key_2.BackgroundTransparency = 1.000
  194. Key_2.Position = UDim2.new(0.800000012, 0, 0, 0)
  195. Key_2.Size = UDim2.new(0.13395454, 0, 1, 0)
  196. Key_2.Font = Enum.Font.GothamBlack
  197. Key_2.Text = "Key: 2"
  198. Key_2.TextColor3 = Color3.fromRGB(255, 255, 0)
  199. Key_2.TextScaled = true
  200. Key_2.TextSize = 14.000
  201. Key_2.TextWrapped = true
  202.  
  203. UIGridLayout_2.Parent = TowerSpawn
  204. UIGridLayout_2.SortOrder = Enum.SortOrder.LayoutOrder
  205. UIGridLayout_2.CellSize = UDim2.new(1, 0, 0.0700000003, 0)
  206.  
  207. SpawnTower3.Name = "SpawnTower3"
  208. SpawnTower3.Parent = TowerSpawn
  209. SpawnTower3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  210. SpawnTower3.BackgroundTransparency = 0.900
  211. SpawnTower3.BorderColor3 = Color3.fromRGB(27, 42, 53)
  212. SpawnTower3.Position = UDim2.new(0.0800001696, 0, 0.0499999672, 0)
  213. SpawnTower3.Size = UDim2.new(0.849999785, 0, 0.0500000007, 0)
  214. SpawnTower3.Font = Enum.Font.SourceSansBold
  215. SpawnTower3.Text = "Spawn Tower 3"
  216. SpawnTower3.TextColor3 = Color3.fromRGB(0, 0, 0)
  217. SpawnTower3.TextScaled = true
  218. SpawnTower3.TextSize = 14.000
  219. SpawnTower3.TextWrapped = true
  220. SpawnTower3.TextXAlignment = Enum.TextXAlignment.Left
  221.  
  222. Key_3.Name = "Key"
  223. Key_3.Parent = SpawnTower3
  224. Key_3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  225. Key_3.BackgroundTransparency = 1.000
  226. Key_3.Position = UDim2.new(0.800000012, 0, 0, 0)
  227. Key_3.Size = UDim2.new(0.13395454, 0, 1, 0)
  228. Key_3.Font = Enum.Font.GothamBlack
  229. Key_3.Text = "Key: 3"
  230. Key_3.TextColor3 = Color3.fromRGB(255, 255, 0)
  231. Key_3.TextScaled = true
  232. Key_3.TextSize = 14.000
  233. Key_3.TextWrapped = true
  234.  
  235. SpawnTower4.Name = "SpawnTower4"
  236. SpawnTower4.Parent = TowerSpawn
  237. SpawnTower4.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  238. SpawnTower4.BackgroundTransparency = 0.900
  239. SpawnTower4.BorderColor3 = Color3.fromRGB(27, 42, 53)
  240. SpawnTower4.Position = UDim2.new(0.0800001696, 0, 0.0499999672, 0)
  241. SpawnTower4.Size = UDim2.new(0.849999785, 0, 0.0500000007, 0)
  242. SpawnTower4.Font = Enum.Font.SourceSansBold
  243. SpawnTower4.Text = "Spawn Tower 4"
  244. SpawnTower4.TextColor3 = Color3.fromRGB(0, 0, 0)
  245. SpawnTower4.TextScaled = true
  246. SpawnTower4.TextSize = 14.000
  247. SpawnTower4.TextWrapped = true
  248. SpawnTower4.TextXAlignment = Enum.TextXAlignment.Left
  249.  
  250. Key_4.Name = "Key"
  251. Key_4.Parent = SpawnTower4
  252. Key_4.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  253. Key_4.BackgroundTransparency = 1.000
  254. Key_4.Position = UDim2.new(0.800000012, 0, 0, 0)
  255. Key_4.Size = UDim2.new(0.13395454, 0, 1, 0)
  256. Key_4.Font = Enum.Font.GothamBlack
  257. Key_4.Text = "Key: 4"
  258. Key_4.TextColor3 = Color3.fromRGB(255, 255, 0)
  259. Key_4.TextScaled = true
  260. Key_4.TextSize = 14.000
  261. Key_4.TextWrapped = true
  262.  
  263. SpawnTower5.Name = "SpawnTower5"
  264. SpawnTower5.Parent = TowerSpawn
  265. SpawnTower5.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  266. SpawnTower5.BackgroundTransparency = 0.900
  267. SpawnTower5.BorderColor3 = Color3.fromRGB(27, 42, 53)
  268. SpawnTower5.Position = UDim2.new(0.0800001696, 0, 0.0499999672, 0)
  269. SpawnTower5.Size = UDim2.new(0.849999785, 0, 0.0500000007, 0)
  270. SpawnTower5.Font = Enum.Font.SourceSansBold
  271. SpawnTower5.Text = "Spawn Tower 5"
  272. SpawnTower5.TextColor3 = Color3.fromRGB(0, 0, 0)
  273. SpawnTower5.TextScaled = true
  274. SpawnTower5.TextSize = 14.000
  275. SpawnTower5.TextWrapped = true
  276. SpawnTower5.TextXAlignment = Enum.TextXAlignment.Left
  277.  
  278. Key_5.Name = "Key"
  279. Key_5.Parent = SpawnTower5
  280. Key_5.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  281. Key_5.BackgroundTransparency = 1.000
  282. Key_5.Position = UDim2.new(0.800000012, 0, 0, 0)
  283. Key_5.Size = UDim2.new(0.13395454, 0, 1, 0)
  284. Key_5.Font = Enum.Font.GothamBlack
  285. Key_5.Text = "Key: 5"
  286. Key_5.TextColor3 = Color3.fromRGB(255, 255, 0)
  287. Key_5.TextScaled = true
  288. Key_5.TextSize = 14.000
  289. Key_5.TextWrapped = true
  290.  
  291. KeyBinds.Name = "KeyBinds"
  292. KeyBinds.Parent = MainFrame
  293. KeyBinds.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  294. KeyBinds.BackgroundTransparency = 1.000
  295. KeyBinds.Position = UDim2.new(0, 0, 0.532949328, 0)
  296. KeyBinds.Size = UDim2.new(1, 0, 0.467050761, 0)
  297.  
  298. UpgrageAllTowers.Name = "UpgrageAllTowers"
  299. UpgrageAllTowers.Parent = KeyBinds
  300. UpgrageAllTowers.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  301. UpgrageAllTowers.BackgroundTransparency = 0.900
  302. UpgrageAllTowers.BorderColor3 = Color3.fromRGB(27, 42, 53)
  303. UpgrageAllTowers.Position = UDim2.new(0.0800001696, 0, 0.0499999672, 0)
  304. UpgrageAllTowers.Size = UDim2.new(0.849999785, 0, 0.0500000007, 0)
  305. UpgrageAllTowers.Font = Enum.Font.SourceSansBold
  306. UpgrageAllTowers.Text = "Upgrade All Towers"
  307. UpgrageAllTowers.TextColor3 = Color3.fromRGB(0, 0, 0)
  308. UpgrageAllTowers.TextScaled = true
  309. UpgrageAllTowers.TextSize = 14.000
  310. UpgrageAllTowers.TextWrapped = true
  311. UpgrageAllTowers.TextXAlignment = Enum.TextXAlignment.Left
  312.  
  313. Key_6.Name = "Key"
  314. Key_6.Parent = UpgrageAllTowers
  315. Key_6.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  316. Key_6.BackgroundTransparency = 1.000
  317. Key_6.Position = UDim2.new(0.765346408, 0, 0, 0)
  318. Key_6.Size = UDim2.new(0.16860798, 0, 1, 0)
  319. Key_6.Font = Enum.Font.GothamBlack
  320. Key_6.Text = "Key: N1"
  321. Key_6.TextColor3 = Color3.fromRGB(255, 255, 0)
  322. Key_6.TextScaled = true
  323. Key_6.TextSize = 14.000
  324. Key_6.TextWrapped = true
  325.  
  326. UIGridLayout_3.Parent = KeyBinds
  327. UIGridLayout_3.SortOrder = Enum.SortOrder.LayoutOrder
  328. UIGridLayout_3.CellSize = UDim2.new(1, 0, 0.129999995, 0)
  329.  
  330. SellAllTowers.Name = "SellAllTowers"
  331. SellAllTowers.Parent = KeyBinds
  332. SellAllTowers.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  333. SellAllTowers.BackgroundTransparency = 0.900
  334. SellAllTowers.BorderColor3 = Color3.fromRGB(27, 42, 53)
  335. SellAllTowers.Position = UDim2.new(0.0800001696, 0, 0.0499999672, 0)
  336. SellAllTowers.Size = UDim2.new(0.849999785, 0, 0.0500000007, 0)
  337. SellAllTowers.Font = Enum.Font.SourceSansBold
  338. SellAllTowers.Text = "Sell All Towers"
  339. SellAllTowers.TextColor3 = Color3.fromRGB(0, 0, 0)
  340. SellAllTowers.TextScaled = true
  341. SellAllTowers.TextSize = 14.000
  342. SellAllTowers.TextWrapped = true
  343. SellAllTowers.TextXAlignment = Enum.TextXAlignment.Left
  344.  
  345. Key_7.Name = "Key"
  346. Key_7.Parent = SellAllTowers
  347. Key_7.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  348. Key_7.BackgroundTransparency = 1.000
  349. Key_7.Position = UDim2.new(0.765346408, 0, 0, 0)
  350. Key_7.Size = UDim2.new(0.16860798, 0, 1, 0)
  351. Key_7.Font = Enum.Font.GothamBlack
  352. Key_7.Text = "Key: N2"
  353. Key_7.TextColor3 = Color3.fromRGB(255, 255, 0)
  354. Key_7.TextScaled = true
  355. Key_7.TextSize = 14.000
  356. Key_7.TextWrapped = true
  357.  
  358. MakeTowersYour.Name = "MakeTowersYour"
  359. MakeTowersYour.Parent = KeyBinds
  360. MakeTowersYour.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  361. MakeTowersYour.BackgroundTransparency = 0.900
  362. MakeTowersYour.BorderColor3 = Color3.fromRGB(27, 42, 53)
  363. MakeTowersYour.Position = UDim2.new(0.0800001696, 0, 0.0499999672, 0)
  364. MakeTowersYour.Size = UDim2.new(0.849999785, 0, 0.0500000007, 0)
  365. MakeTowersYour.Font = Enum.Font.SourceSansBold
  366. MakeTowersYour.Text = "Make Towers Your"
  367. MakeTowersYour.TextColor3 = Color3.fromRGB(0, 0, 0)
  368. MakeTowersYour.TextScaled = true
  369. MakeTowersYour.TextSize = 14.000
  370. MakeTowersYour.TextWrapped = true
  371. MakeTowersYour.TextXAlignment = Enum.TextXAlignment.Left
  372.  
  373. Key_8.Name = "Key"
  374. Key_8.Parent = MakeTowersYour
  375. Key_8.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  376. Key_8.BackgroundTransparency = 1.000
  377. Key_8.Position = UDim2.new(0.765346408, 0, 0, 0)
  378. Key_8.Size = UDim2.new(0.16860798, 0, 1, 0)
  379. Key_8.Font = Enum.Font.GothamBlack
  380. Key_8.Text = "Key: N3"
  381. Key_8.TextColor3 = Color3.fromRGB(255, 255, 0)
  382. Key_8.TextScaled = true
  383. Key_8.TextSize = 14.000
  384. Key_8.TextWrapped = true
  385.  
  386. CloseButton_2.Name = "CloseButton"
  387. CloseButton_2.Parent = MainFrame
  388. CloseButton_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  389. CloseButton_2.BackgroundTransparency = 1.000
  390. CloseButton_2.BorderSizePixel = 0
  391. CloseButton_2.Position = UDim2.new(0.930000007, 0, 0.0199999996, 0)
  392. CloseButton_2.Size = UDim2.new(0.0599999987, 0, 0.0500000007, 0)
  393. CloseButton_2.Font = Enum.Font.GothamBlack
  394. CloseButton_2.Text = "X"
  395. CloseButton_2.TextColor3 = Color3.fromRGB(255, 0, 0)
  396. CloseButton_2.TextScaled = true
  397. CloseButton_2.TextSize = 14.000
  398. CloseButton_2.TextWrapped = true
  399.  
  400. Label_2.Name = "Label"
  401. Label_2.Parent = MainFrame
  402. Label_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  403. Label_2.BackgroundTransparency = 1.000
  404. Label_2.BorderSizePixel = 0
  405. Label_2.Position = UDim2.new(0, 0, 0.00999999233, 0)
  406. Label_2.Size = UDim2.new(0.929999948, 0, 0.075000003, 0)
  407. Label_2.Font = Enum.Font.GothamBlack
  408. Label_2.Text = "EasyTB"
  409. Label_2.TextColor3 = Color3.fromRGB(255, 255, 255)
  410. Label_2.TextScaled = true
  411. Label_2.TextSize = 14.000
  412. Label_2.TextStrokeTransparency = 0.500
  413. Label_2.TextWrapped = true
  414.  
  415. null.Name = "null"
  416. null.Parent = MainFrame
  417. null.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  418. null.BorderSizePixel = 0
  419. null.Position = UDim2.new(0, 0, 0.0909999982, 0)
  420. null.Size = UDim2.new(1, 0, 0.0149999997, 0)
  421. null.Font = Enum.Font.GothamBlack
  422. null.Text = ""
  423. null.TextColor3 = Color3.fromRGB(255, 255, 255)
  424. null.TextScaled = true
  425. null.TextSize = 14.000
  426. null.TextWrapped = true
  427.  
  428. null_2.Name = "null"
  429. null_2.Parent = MainFrame
  430. null_2.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  431. null_2.BorderSizePixel = 0
  432. null_2.Position = UDim2.new(0, 0, 0.779999971, 0)
  433. null_2.Size = UDim2.new(1, 0, 0.0149999997, 0)
  434. null_2.Font = Enum.Font.GothamBlack
  435. null_2.Text = ""
  436. null_2.TextColor3 = Color3.fromRGB(255, 255, 255)
  437. null_2.TextScaled = true
  438. null_2.TextSize = 14.000
  439. null_2.TextWrapped = true
  440.  
  441. local Service = setmetatable({}, {
  442.     __index = function(n, k)
  443.         return game:GetService(k)
  444.     end
  445. })
  446.  
  447. local Player = Service.Players.LocalPlayer
  448. local Character = Player.Character or Player.CharacterAdded:Wait()
  449.  
  450. local Mouse = Player:GetMouse()
  451.  
  452. local Towers = {
  453.     ["1"] = "",
  454.     ["2"] = "",
  455.     ["3"] = "",
  456.     ["4"] = "",
  457.     ["5"] = "" 
  458. }
  459.  
  460. function UpdateTowers()
  461.     for _, b in pairs(Player.StuffToSave:GetChildren()) do
  462.         if b.Name:find("Tower") then
  463.             for c, d in pairs(Towers) do
  464.                 if d == "" then
  465.                     local num = tonumber(b.Name:sub(b.Name:len()))
  466.                     Towers[num] = b.Value
  467.                     wait()
  468.                 end
  469.             end
  470.         end
  471.     end
  472.     warn(Towers[1], Towers[2], Towers[3], Towers[4], Towers[5])
  473. end
  474.  
  475. function GetTowers()
  476.     return game.Workspace.Towers:GetChildren()
  477. end
  478.  
  479. function byte(str)
  480.     return string.byte(str)
  481. end
  482.  
  483. function PlaceInvoke(...)
  484.     workspace.Placed:InvokeServer(...)
  485. end
  486.  
  487. function UpgradeTower(...)
  488.     workspace.UpgradeTower:InvokeServer(...)
  489. end
  490.  
  491. function SellTower(...)
  492.     workspace.SellTower:InvokeServer(...)
  493. end
  494.  
  495. warn([[
  496.    
  497.      MADE BY
  498.          
  499.       -DragonMan845
  500.       -Cube46
  501.    
  502.     Thanks for using!
  503.        
  504. ]])
  505.  
  506. UpdateTowers()
  507.  
  508. Mouse.KeyDown:Connect(function(key)
  509.     if byte(key) == 49 then
  510.         PlaceInvoke(Mouse.Hit.p, 1, Towers[1], workspace.Map.Grass)
  511.     elseif byte(key) == 50 then
  512.         PlaceInvoke(Mouse.Hit.p, 1, Towers[2], workspace.Map.Grass)
  513.     elseif byte(key) == 51 then
  514.         PlaceInvoke(Mouse.Hit.p, 1, Towers[3], workspace.Map.Grass)
  515.     elseif byte(key) == 52 then
  516.         PlaceInvoke(Mouse.Hit.p, 1, Towers[4], workspace.Map.Grass)
  517.     elseif byte(key) == 53 then
  518.         PlaceInvoke(Mouse.Hit.p, 1, Towers[5], workspace.Map.Grass)
  519.     elseif byte(key) == 1 then
  520.         local towers = GetTowers()
  521.         for _, b in pairs(towers) do
  522.             UpgradeTower(b.Name)
  523.             wait()
  524.         end
  525.     elseif byte(key) == 2 then
  526.         local towers = GetTowers()
  527.         for _, b in pairs(towers) do
  528.             SellTower(b.Name)
  529.             wait()
  530.         end
  531.     elseif byte(key) == 3 then
  532.         local towers = GetTowers()
  533.         for _, b in pairs(towers) do
  534.             b.Owner.Value = Player
  535.             wait()
  536.         end
  537.     end
  538. end)
  539.  
  540. CloseButton_2.MouseButton1Click:Connect(function()
  541.     EasyTB:Destroy()
  542. end)
  543.  
  544. CreditsBTN.MouseButton1Click:Connect(function()
  545.     Credits.Visible = true
  546.     MainFrame.Visible = false
  547. end)
  548.  
  549. CloseButton.MouseButton1Click:Connect(function()
  550.     Credits.Visible = false
  551.     MainFrame.Visible = true
  552. end)
  553.  
  554. SpawnTower1.MouseButton1Click:Connect(function()
  555.     PlaceInvoke(Character["Left Leg"].Position + Vector3.new(0, -0.75, 0), 1, Towers[1], workspace.Map.Grass)
  556. end)
  557.  
  558. SpawnTower2.MouseButton1Click:Connect(function()
  559.     PlaceInvoke(Character["Left Leg"].Position + Vector3.new(0, -0.75, 0), 1, Towers[2], workspace.Map.Grass)
  560. end)
  561.  
  562. SpawnTower3.MouseButton1Click:Connect(function()
  563.     PlaceInvoke(Character["Left Leg"].Position + Vector3.new(0, -0.75, 0), 1, Towers[3], workspace.Map.Grass)
  564. end)
  565.  
  566. SpawnTower4.MouseButton1Click:Connect(function()
  567.     PlaceInvoke(Character["Left Leg"].Position + Vector3.new(0, -0.75, 0), 1, Towers[4], workspace.Map.Grass)
  568. end)
  569.  
  570. SpawnTower5.MouseButton1Click:Connect(function()
  571.     PlaceInvoke(Character["Left Leg"].Position + Vector3.new(0, -0.75, 0), 1, Towers[5], workspace.Map.Grass)
  572. end)
  573.  
  574. UpgrageAllTowers.MouseButton1Click:Connect(function()
  575.     local towers = GetTowers()
  576.     for _, b in pairs(towers) do
  577.         UpgradeTower(b.Name)
  578.     end
  579. end)
  580.  
  581. SellAllTowers.MouseButton1Click:Connect(function()
  582.     local towers = GetTowers()
  583.     for _, b in pairs(towers) do
  584.         SellTower(b.Name)
  585.     end
  586. end)
  587.  
  588. MakeTowersYour.MouseButton1Click:Connect(function()
  589.     local towers = GetTowers()
  590.     for _, b in pairs(towers) do
  591.         b.Owner.Value = Player
  592.     end
  593. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement