Advertisement
Guest User

Undertale Tower Defense Script

a guest
Apr 25th, 2022
13,386
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.83 KB | None | 0 0
  1.  
  2.  
  3. local ScreenGui = Instance.new("ScreenGui")
  4. local Frame = Instance.new("Frame")
  5. local ImageButton = Instance.new("ImageButton")
  6. local TextLabel = Instance.new("TextLabel")
  7. local TextLabel_2 = Instance.new("TextLabel")
  8. local TextLabel_3 = Instance.new("TextLabel")
  9. local TextLabel_4 = Instance.new("TextLabel")
  10. local Undynetheund = Instance.new("TextButton")
  11. local TextButton = Instance.new("TextButton")
  12. local TextButton_2 = Instance.new("TextButton")
  13. local TextButton_3 = Instance.new("TextButton")
  14. local TextButton_4 = Instance.new("TextButton")
  15. local TextButton_5 = Instance.new("TextButton")
  16. local TextButton_6 = Instance.new("TextButton")
  17. local TextButton_7 = Instance.new("TextButton")
  18. local TextButton_8 = Instance.new("TextButton")
  19. local TextButton_9 = Instance.new("TextButton")
  20. local TextButton_10 = Instance.new("TextButton")
  21. local TextButton_11 = Instance.new("TextButton")
  22. local TextButton_12 = Instance.new("TextButton")
  23. local TextButton_13 = Instance.new("TextButton")
  24. local TextButton_14 = Instance.new("TextButton")
  25. local TextButton_15 = Instance.new("TextButton")
  26. local TextButton_16 = Instance.new("TextButton")
  27. local TextButton_17 = Instance.new("TextButton")
  28. local TextButton_18 = Instance.new("TextButton")
  29. local TextButton_19 = Instance.new("TextButton")
  30.  
  31.  
  32. ScreenGui.Parent = game.CoreGui
  33. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  34.  
  35. Frame.Parent = ScreenGui
  36. Frame.BackgroundColor3 = Color3.fromRGB(1, 29, 45)
  37. Frame.Position = UDim2.new(0.191053823, 0, 0.253968269, 0)
  38. Frame.Size = UDim2.new(0, 449, 0, 483)
  39. Frame.Active = true
  40. Frame.Draggable = true
  41.  
  42. ImageButton.Parent = Frame
  43. ImageButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  44. ImageButton.Position = UDim2.new(0.888247967, 0, 0.542336345, 0)
  45. ImageButton.Size = UDim2.new(0, 50, 0, 50)
  46. ImageButton.Image = "rbxassetid://9464856851"
  47. ImageButton.MouseButton1Down:connect(function()
  48. loadstring(game:HttpGet('https://raw.githubusercontent.com/EdgeIY/infiniteyield/master/source'))()
  49.  
  50. end)
  51.  
  52. TextLabel_2.Parent = Frame
  53. TextLabel_2.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  54. TextLabel_2.Position = UDim2.new(-0.00445430912, 0, 0.104429513, 0)
  55. TextLabel_2.Size = UDim2.new(0, 452, 0, 27)
  56. TextLabel_2.Font = Enum.Font.SourceSans
  57. TextLabel_2.Text = "Towers"
  58. TextLabel_2.TextColor3 = Color3.fromRGB(57, 255, 249)
  59. TextLabel_2.TextSize = 31.000
  60. TextLabel_2.TextWrapped = true
  61.  
  62. TextLabel_3.Parent = Frame
  63. TextLabel_3.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  64. TextLabel_3.Position = UDim2.new(1.16415322e-08, 0, 0.482295394, 0)
  65. TextLabel_3.Size = UDim2.new(0, 450, 0, 28)
  66. TextLabel_3.Font = Enum.Font.SourceSans
  67. TextLabel_3.Text = "Dungeons"
  68. TextLabel_3.TextColor3 = Color3.fromRGB(57, 255, 249)
  69. TextLabel_3.TextSize = 31.000
  70. TextLabel_3.TextWrapped = true
  71.  
  72. TextLabel_4.Parent = Frame
  73. TextLabel_4.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  74. TextLabel_4.Position = UDim2.new(-0.000758138543, 0, -0.00141525269, 0)
  75. TextLabel_4.Size = UDim2.new(0, 450, 0, 50)
  76. TextLabel_4.Font = Enum.Font.SourceSans
  77. TextLabel_4.Text = "Script by YouR"
  78. TextLabel_4.TextColor3 = Color3.fromRGB(57, 255, 249)
  79. TextLabel_4.TextSize = 31.000
  80. TextLabel_4.TextWrapped = true
  81.  
  82. Undynetheund.Name = "Undyne the und"
  83. Undynetheund.Parent = Frame
  84. Undynetheund.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  85. Undynetheund.Position = UDim2.new(0.000710884109, 0, 0.16205442, 0)
  86. Undynetheund.Size = UDim2.new(0, 50, 0, 50)
  87. Undynetheund.Font = Enum.Font.SourceSans
  88. Undynetheund.Text = "Undyne the Undying"
  89. Undynetheund.TextColor3 = Color3.fromRGB(57, 255, 249)
  90. Undynetheund.TextScaled = true
  91. Undynetheund.TextSize = 14.000
  92. Undynetheund.TextWrapped = true
  93. Undynetheund.MouseButton1Down:connect(function()
  94. local A_1 = 1008
  95. local A_2 = 1
  96. local Event = game:GetService("ReplicatedStorage").Equip
  97. Event:FireServer(A_1, A_2)
  98.  
  99. end)
  100.  
  101. TextButton.Parent = Frame
  102. TextButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  103. TextButton.Position = UDim2.new(0.112160698, 0, 0.162054405, 0)
  104. TextButton.Size = UDim2.new(0, 50, 0, 50)
  105. TextButton.Font = Enum.Font.SourceSans
  106. TextButton.Text = "Royal Guard 01"
  107. TextButton.TextColor3 = Color3.fromRGB(57, 255, 249)
  108. TextButton.TextScaled = true
  109. TextButton.TextSize = 14.000
  110. TextButton.TextWrapped = true
  111. TextButton.MouseButton1Down:connect(function()
  112. local A_1 = 25
  113. local A_2 = 1
  114. local Event = game:GetService("ReplicatedStorage").Equip
  115. Event:FireServer(A_1, A_2)
  116.  
  117. end)
  118.  
  119. TextButton_2.Parent = Frame
  120. TextButton_2.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  121. TextButton_2.Position = UDim2.new(0.335681498, 0, 0.162054405, 0)
  122. TextButton_2.Size = UDim2.new(0, 50, 0, 50)
  123. TextButton_2.Font = Enum.Font.SourceSans
  124. TextButton_2.Text = "Final Froggit"
  125. TextButton_2.TextColor3 = Color3.fromRGB(57, 255, 249)
  126. TextButton_2.TextScaled = true
  127. TextButton_2.TextSize = 14.000
  128. TextButton_2.TextWrapped = true
  129. TextButton_2.MouseButton1Down:connect(function()
  130. local A_1 = 28
  131. local A_2 = 1
  132. local Event = game:GetService("ReplicatedStorage").Equip
  133. Event:FireServer(A_1, A_2)
  134.  
  135. end)
  136.  
  137. TextButton_3.Parent = Frame
  138. TextButton_3.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  139. TextButton_3.Position = UDim2.new(0.889006138, 0, 0.16205442, 0)
  140. TextButton_3.Size = UDim2.new(0, 50, 0, 50)
  141. TextButton_3.Font = Enum.Font.SourceSans
  142. TextButton_3.Text = "Glyde"
  143. TextButton_3.TextColor3 = Color3.fromRGB(57, 255, 249)
  144. TextButton_3.TextScaled = true
  145. TextButton_3.TextSize = 14.000
  146. TextButton_3.TextWrapped = true
  147. TextButton_3.MouseButton1Down:connect(function()
  148. local A_1 = 43
  149. local A_2 = 1
  150. local Event = game:GetService("ReplicatedStorage").Equip
  151. Event:FireServer(A_1, A_2)
  152.  
  153. end)
  154.  
  155. TextButton_4.Parent = Frame
  156. TextButton_4.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  157. TextButton_4.Position = UDim2.new(0.557020783, 0, 0.162494034, 0)
  158. TextButton_4.Size = UDim2.new(0, 50, 0, 49)
  159. TextButton_4.Font = Enum.Font.SourceSans
  160. TextButton_4.Text = "Knight"
  161. TextButton_4.TextColor3 = Color3.fromRGB(57, 255, 249)
  162. TextButton_4.TextScaled = true
  163. TextButton_4.TextSize = 14.000
  164. TextButton_4.TextWrapped = true
  165. TextButton_4.MouseButton1Down:connect(function()
  166. local A_1 = 31
  167. local A_2 = 1
  168. local Event = game:GetService("ReplicatedStorage").Equip
  169. Event:FireServer(A_1, A_2)
  170.  
  171. end)
  172.  
  173. TextButton_5.Parent = Frame
  174. TextButton_5.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  175. TextButton_5.Position = UDim2.new(0.666197777, 0, 0.16205442, 0)
  176. TextButton_5.Size = UDim2.new(0, 50, 0, 50)
  177. TextButton_5.Font = Enum.Font.SourceSans
  178. TextButton_5.Text = "Mad Dummy"
  179. TextButton_5.TextColor3 = Color3.fromRGB(57, 255, 249)
  180. TextButton_5.TextScaled = true
  181. TextButton_5.TextSize = 14.000
  182. TextButton_5.TextWrapped = true
  183. TextButton_5.MouseButton1Down:connect(function()
  184. local A_1 = 41
  185. local A_2 = 1
  186. local Event = game:GetService("ReplicatedStorage").Equip
  187. Event:FireServer(A_1, A_2)
  188.  
  189. end)
  190.  
  191. TextButton_6.Parent = Frame
  192. TextButton_6.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  193. TextButton_6.Position = UDim2.new(0.44784379, 0, 0.16205442, 0)
  194. TextButton_6.Size = UDim2.new(0, 50, 0, 50)
  195. TextButton_6.Font = Enum.Font.SourceSans
  196. TextButton_6.Text = "Madjick"
  197. TextButton_6.TextColor3 = Color3.fromRGB(57, 255, 249)
  198. TextButton_6.TextScaled = true
  199. TextButton_6.TextSize = 14.000
  200. TextButton_6.TextWrapped = true
  201. TextButton_6.MouseButton1Down:connect(function()
  202. local A_1 = 32
  203. local A_2 = 1
  204. local Event = game:GetService("ReplicatedStorage").Equip
  205. Event:FireServer(A_1, A_2)
  206.  
  207. end)
  208.  
  209. TextButton_7.Parent = Frame
  210. TextButton_7.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  211. TextButton_7.Position = UDim2.new(0.77537483, 0, 0.16205442, 0)
  212. TextButton_7.Size = UDim2.new(0, 50, 0, 50)
  213. TextButton_7.Font = Enum.Font.SourceSans
  214. TextButton_7.Text = "Alphys"
  215. TextButton_7.TextColor3 = Color3.fromRGB(57, 255, 249)
  216. TextButton_7.TextScaled = true
  217. TextButton_7.TextSize = 14.000
  218. TextButton_7.TextWrapped = true
  219. TextButton_7.MouseButton1Down:connect(function()
  220. local A_1 = 42
  221. local A_2 = 1
  222. local Event = game:GetService("ReplicatedStorage").Equip
  223. Event:FireServer(A_1, A_2)
  224.  
  225. end)
  226.  
  227. TextButton_8.Parent = Frame
  228. TextButton_8.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  229. TextButton_8.Position = UDim2.new(0.224989891, 0, 0.16205442, 0)
  230. TextButton_8.Size = UDim2.new(0, 50, 0, 50)
  231. TextButton_8.Font = Enum.Font.SourceSans
  232. TextButton_8.Text = "Royal Guard 02"
  233. TextButton_8.TextColor3 = Color3.fromRGB(57, 255, 249)
  234. TextButton_8.TextScaled = true
  235. TextButton_8.TextSize = 14.000
  236. TextButton_8.TextWrapped = true
  237. TextButton_8.MouseButton1Down:connect(function()
  238. local A_1 = 26
  239. local A_2 = 1
  240. local Event = game:GetService("ReplicatedStorage").Equip
  241. Event:FireServer(A_1, A_2)
  242.  
  243. end)
  244.  
  245. TextButton_9.Parent = Frame
  246. TextButton_9.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  247. TextButton_9.Position = UDim2.new(0.113631338, 0, 0.266115248, 0)
  248. TextButton_9.Size = UDim2.new(0, 50, 0, 50)
  249. TextButton_9.Font = Enum.Font.SourceSans
  250. TextButton_9.Text = "Endogeny"
  251. TextButton_9.TextColor3 = Color3.fromRGB(57, 255, 249)
  252. TextButton_9.TextScaled = true
  253. TextButton_9.TextSize = 14.000
  254. TextButton_9.TextWrapped = true
  255. TextButton_9.MouseButton1Down:connect(function()
  256. local A_1 = 46
  257. local A_2 = 1
  258. local Event = game:GetService("ReplicatedStorage").Equip
  259. Event:FireServer(A_1, A_2)
  260.  
  261. end)
  262.  
  263. TextButton_10.Parent = Frame
  264. TextButton_10.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  265. TextButton_10.Position = UDim2.new(0.000710917171, 0, 0.268265754, 0)
  266. TextButton_10.Size = UDim2.new(0, 50, 0, 50)
  267. TextButton_10.Font = Enum.Font.SourceSans
  268. TextButton_10.Text = "SoSorry"
  269. TextButton_10.TextColor3 = Color3.fromRGB(57, 255, 249)
  270. TextButton_10.TextScaled = true
  271. TextButton_10.TextSize = 14.000
  272. TextButton_10.TextWrapped = true
  273. TextButton_10.MouseButton1Down:connect(function()
  274. local A_1 = 44
  275. local A_2 = 1
  276. local Event = game:GetService("ReplicatedStorage").Equip
  277. Event:FireServer(A_1, A_2)
  278.  
  279. end)
  280.  
  281. TextButton_11.Parent = Frame
  282. TextButton_11.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  283. TextButton_11.Position = UDim2.new(0.336439669, 0, 0.266115248, 0)
  284. TextButton_11.Size = UDim2.new(0, 50, 0, 49)
  285. TextButton_11.Font = Enum.Font.SourceSans
  286. TextButton_11.Text = "Lemon Bread"
  287. TextButton_11.TextColor3 = Color3.fromRGB(57, 255, 249)
  288. TextButton_11.TextScaled = true
  289. TextButton_11.TextSize = 14.000
  290. TextButton_11.TextWrapped = true
  291. TextButton_11.MouseButton1Down:connect(function()
  292. local A_1 = 48
  293. local A_2 = 1
  294. local Event = game:GetService("ReplicatedStorage").Equip
  295. Event:FireServer(A_1, A_2)
  296.  
  297. end)
  298.  
  299. TextButton_12.Parent = Frame
  300. TextButton_12.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  301. TextButton_12.Position = UDim2.new(0.225035518, 0, 0.270331889, 0)
  302. TextButton_12.Size = UDim2.new(0, 50, 0, 49)
  303. TextButton_12.Font = Enum.Font.SourceSans
  304. TextButton_12.Text = "Reaper Bird"
  305. TextButton_12.TextColor3 = Color3.fromRGB(57, 255, 249)
  306. TextButton_12.TextScaled = true
  307. TextButton_12.TextSize = 14.000
  308. TextButton_12.TextWrapped = true
  309. TextButton_12.MouseButton1Down:connect(function()
  310. local A_1 = 47
  311. local A_2 = 1
  312. local Event = game:GetService("ReplicatedStorage").Equip
  313. Event:FireServer(A_1, A_2)
  314.  
  315. end)
  316.  
  317. TextButton_13.Parent = Frame
  318. TextButton_13.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  319. TextButton_13.Position = UDim2.new(0.445616663, 0, 0.264133543, 0)
  320. TextButton_13.Size = UDim2.new(0, 50, 0, 49)
  321. TextButton_13.Font = Enum.Font.SourceSans
  322. TextButton_13.Text = "SnowDrake's mother"
  323. TextButton_13.TextColor3 = Color3.fromRGB(57, 255, 249)
  324. TextButton_13.TextSize = 14.000
  325. TextButton_13.TextWrapped = true
  326. TextButton_13.MouseButton1Down:connect(function()
  327. local A_1 = 49
  328. local A_2 = 1
  329. local Event = game:GetService("ReplicatedStorage").Equip
  330. Event:FireServer(A_1, A_2)
  331.  
  332. end)
  333.  
  334. TextButton_14.Parent = Frame
  335. TextButton_14.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  336. TextButton_14.Position = UDim2.new(0.113631323, 0, 0.542336345, 0)
  337. TextButton_14.Size = UDim2.new(0, 50, 0, 50)
  338. TextButton_14.Font = Enum.Font.SourceSans
  339. TextButton_14.Text = "WATERFALL"
  340. TextButton_14.TextColor3 = Color3.fromRGB(57, 255, 249)
  341. TextButton_14.TextScaled = true
  342. TextButton_14.TextSize = 14.000
  343. TextButton_14.TextWrapped = true
  344. TextButton_14.MouseButton1Down:connect(function()
  345. local A_1 = "Zona3b"
  346. local Event = game:GetService("ReplicatedStorage").Join
  347. Event:FireServer(A_1)
  348.  
  349. end)
  350.  
  351. TextButton_15.Parent = Frame
  352. TextButton_15.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  353. TextButton_15.Position = UDim2.new(0.336439639, 0, 0.542336345, 0)
  354. TextButton_15.Size = UDim2.new(0, 50, 0, 50)
  355. TextButton_15.Font = Enum.Font.SourceSans
  356. TextButton_15.Text = "CORE"
  357. TextButton_15.TextColor3 = Color3.fromRGB(57, 255, 249)
  358. TextButton_15.TextScaled = true
  359. TextButton_15.TextSize = 14.000
  360. TextButton_15.TextWrapped = true
  361. TextButton_15.MouseButton1Down:connect(function()
  362. local A_1 = "Zona5b"
  363. local Event = game:GetService("ReplicatedStorage").Join
  364. Event:FireServer(A_1)
  365.  
  366. end)
  367.  
  368. TextButton_16.Parent = Frame
  369. TextButton_16.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  370. TextButton_16.Position = UDim2.new(0.225035518, 0, 0.542336345, 0)
  371. TextButton_16.Size = UDim2.new(0, 50, 0, 50)
  372. TextButton_16.Font = Enum.Font.SourceSans
  373. TextButton_16.Text = "HOTLAND"
  374. TextButton_16.TextColor3 = Color3.fromRGB(57, 255, 249)
  375. TextButton_16.TextScaled = true
  376. TextButton_16.TextSize = 14.000
  377. TextButton_16.TextWrapped = true
  378. TextButton_16.MouseButton1Down:connect(function()
  379. local A_1 = "Zona4b"
  380. local Event = game:GetService("ReplicatedStorage").Join
  381. Event:FireServer(A_1)
  382.  
  383. end)
  384.  
  385. TextButton_19.Parent = Frame
  386. TextButton_19.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  387. TextButton_19.Position = UDim2.new(0.00146902143, 0, 0.542336345, 0)
  388. TextButton_19.Size = UDim2.new(0, 50, 0, 50)
  389. TextButton_19.Font = Enum.Font.SourceSans
  390. TextButton_19.Text = "SNOWDIN"
  391. TextButton_19.TextColor3 = Color3.fromRGB(57, 255, 249)
  392. TextButton_19.TextScaled = true
  393. TextButton_19.TextSize = 14.000
  394. TextButton_19.TextWrapped = true
  395. TextButton_19.MouseButton1Down:connect(function()
  396. local A_1 = "Zona2b"
  397. local Event = game:GetService("ReplicatedStorage").Join
  398. Event:FireServer(A_1)
  399.  
  400. end)
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement