Advertisement
Guest User

Warrior Sim Gui

a guest
Jun 23rd, 2019
13,458
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.47 KB | None | 0 0
  1. -- warrior sim https://www.roblox.com/games/2716845201/Warrior-Simulator?nl=true
  2. -- initial variables
  3. hum = game.Players.LocalPlayer.Character.HumanoidRootPart
  4. gamepasses = game.Players.LocalPlayer.Gamepass:GetChildren()
  5. thePlayer = game.Players.LocalPlayer.Character
  6. -- get gamepasses
  7. for i = 1, #gamepasses do
  8. gamepasses[i].Value = true
  9. end
  10. game.Players.LocalPlayer.Gamepass.DualWield.Enabled.Value = true
  11.  
  12. local ScreenGui = Instance.new("ScreenGui")
  13. local GUI = Instance.new("Frame")
  14. local Title = Instance.new("TextLabel")
  15. local KillAllWarriors= Instance.new("TextButton")
  16. local KillAllLizard = Instance.new("TextButton")
  17. local KillAllSkeleton = Instance.new("TextButton")
  18. local KillDesertBoss = Instance.new("TextButton")
  19. local Credits = Instance.new("TextLabel")
  20. local KillKoblox= Instance.new("TextButton")
  21. local KillTerrainSpecialist= Instance.new("TextButton")
  22. local KillSunstar= Instance.new("TextButton")
  23. local KillMagmaFiend= Instance.new("TextButton")
  24. local Button1 = Instance.new("TextButton")
  25. local Button2 = Instance.new("TextButton")
  26. local Button3 = Instance.new("TextButton")
  27. local Button4 = Instance.new("TextButton")
  28. local Button5 = Instance.new("TextButton")
  29. local Button6 = Instance.new("TextButton")
  30. local Button7 = Instance.new("TextButton")
  31. local Button8 = Instance.new("TextButton")
  32.  
  33. modifier = false
  34.  
  35. ScreenGui.Parent = game.CoreGui
  36.  
  37. GUI.Name = "GUI"
  38. GUI.Parent = ScreenGui
  39. GUI.BackgroundColor3 = Color3.new(0.0784314, 0.0784314, 0.0784314)
  40. GUI.BorderColor3 = Color3.new(0.0980392, 0.0980392, 0.0980392)
  41. GUI.BorderSizePixel = 0
  42. GUI.Position = UDim2.new(0, 0, 0.2, 0)
  43. GUI.Size = UDim2.new(0, 316, 0, 339)
  44. GUI.Style = Enum.FrameStyle.RobloxRound
  45.  
  46. Title.Name = "Title"
  47. Title.Parent = GUI
  48. Title.Active = true
  49. Title.BackgroundColor3 = Color3.new(0.0980392, 0.0980392, 0.0980392)
  50. Title.Position = UDim2.new(0.114720426, 0, 0.00523944944, 0)
  51. Title.Size = UDim2.new(0, 200, 0, 50)
  52. Title.Font = Enum.Font.SourceSans
  53. Title.Text = "Warrior Simulator GUI"
  54. Title.TextColor3 = Color3.new(1, 1, 1)
  55. Title.TextSize = 14
  56.  
  57. KillAllWarriors.Name = "KillAllWarriors"
  58. KillAllWarriors.Parent = GUI
  59. KillAllWarriors.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  60. KillAllWarriors.Position = UDim2.new(0.0284810141, 0, 0.133038366, 0)
  61. KillAllWarriors.Size = UDim2.new(0, 114, 0, 26)
  62. KillAllWarriors.Font = Enum.Font.SourceSans
  63. KillAllWarriors.Text = "Kill Warriors"
  64. KillAllWarriors.TextColor3 = Color3.new(1, 1, 1)
  65. KillAllWarriors.TextSize = 14
  66.  
  67. KillAllLizard.Name = "KillAllLizard"
  68. KillAllLizard.Parent = GUI
  69. KillAllLizard.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  70. KillAllLizard.Position = UDim2.new(0.525316477, 0, 0.133038366, 0)
  71. KillAllLizard.Size = UDim2.new(0, 114, 0, 26)
  72. KillAllLizard.Font = Enum.Font.SourceSans
  73. KillAllLizard.Text = "Kill Lizard"
  74. KillAllLizard.TextColor3 = Color3.new(1, 1, 1)
  75. KillAllLizard.TextSize = 14
  76.  
  77. KillAllSkeleton.Name = "KillAllSkeleton"
  78. KillAllSkeleton.Parent = GUI
  79. KillAllSkeleton.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  80. KillAllSkeleton.Position = UDim2.new(0.03164557, 0, 0.233038366, 0)
  81. KillAllSkeleton.Size = UDim2.new(0, 114, 0, 26)
  82. KillAllSkeleton.Font = Enum.Font.SourceSans
  83. KillAllSkeleton.Text = "Kill Skeleton"
  84. KillAllSkeleton.TextColor3 = Color3.new(1, 1, 1)
  85. KillAllSkeleton.TextSize = 14
  86.  
  87. KillDesertBoss.Name = "Kill DesertBoss"
  88. KillDesertBoss.Parent = GUI
  89. KillDesertBoss.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  90. KillDesertBoss.Position = UDim2.new(0.525316477, 0, 0.233038366, 0)
  91. KillDesertBoss.Size = UDim2.new(0, 114, 0, 26)
  92. KillDesertBoss.Font = Enum.Font.SourceSans
  93. KillDesertBoss.Text = "KillAllDesertBoss"
  94. KillDesertBoss.TextColor3 = Color3.new(1, 1, 1)
  95. KillDesertBoss.TextSize = 14
  96.  
  97. Credits.Name = "Credits"
  98. Credits.Parent = GUI
  99. Credits.BackgroundColor3 = Color3.new(1, 1, 1)
  100. Credits.Position = UDim2.new(0.00316455704, 0, 0.943952799, 0)
  101. Credits.Size = UDim2.new(0, 109, 0, 18)
  102. Credits.Font = Enum.Font.SourceSans
  103. Credits.Text = "Credits to MRobbin99"
  104. Credits.TextSize = 14
  105.  
  106. KillTerrainSpecialist.Name = "KillTerrainSpecialist"
  107. KillTerrainSpecialist.Parent = GUI
  108. KillTerrainSpecialist.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  109. KillTerrainSpecialist.Position = UDim2.new(0.0284810122, 0, 0.333038366, 0)
  110. KillTerrainSpecialist.Size = UDim2.new(0, 114, 0, 26)
  111. KillTerrainSpecialist.Font = Enum.Font.SourceSans
  112. KillTerrainSpecialist.Text = "Kill Terrain Specialist"
  113. KillTerrainSpecialist.TextColor3 = Color3.new(1, 1, 1)
  114. KillTerrainSpecialist.TextSize = 14
  115.  
  116. KillKoblox.Parent = GUI
  117. KillKoblox.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  118. KillKoblox.Position = UDim2.new(0.525316477, 0, 0.333038366, 0)
  119. KillKoblox.Size = UDim2.new(0, 114, 0, 26)
  120. KillKoblox.Font = Enum.Font.SourceSans
  121. KillKoblox.Text = "Kill Korblox General"
  122. KillKoblox.TextColor3 = Color3.new(1, 1, 1)
  123. KillKoblox.TextSize = 14
  124.  
  125. KillSunstar.Parent = GUI
  126. KillSunstar.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  127. KillSunstar.Position = UDim2.new(0.0284810122, 0, 0.433038366, 0)
  128. KillSunstar.Size = UDim2.new(0, 114, 0, 26)
  129. KillSunstar.Font = Enum.Font.SourceSans
  130. KillSunstar.Text = "Kill Sunstar"
  131. KillSunstar.TextColor3 = Color3.new(1, 1, 1)
  132. KillSunstar.TextSize = 14
  133.  
  134. KillMagmaFiend.Parent = GUI
  135. KillMagmaFiend.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  136. KillMagmaFiend.Position = UDim2.new(0.525316477, 0, 0.433038366, 0)
  137. KillMagmaFiend.Size = UDim2.new(0, 114, 0, 26)
  138. KillMagmaFiend.Font = Enum.Font.SourceSans
  139. KillMagmaFiend.Text = "Kill Magma Fiend"
  140. KillMagmaFiend.TextColor3 = Color3.new(1, 1, 1)
  141. KillMagmaFiend.TextSize = 14
  142.  
  143. Button1.Parent = GUI
  144. Button1.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  145. Button1.Position = UDim2.new(0.0284810122, 0, 0.533038366, 0)
  146. Button1.Size = UDim2.new(0, 114, 0, 26)
  147. Button1.Font = Enum.Font.SourceSans
  148. Button1.Text = "Kill Overseer Assassin"
  149. Button1.TextColor3 = Color3.new(1, 1, 1)
  150. Button1.TextSize = 14
  151.  
  152. Button2.Parent = GUI
  153. Button2.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  154. Button2.Position = UDim2.new(0.525316477, 0, 0.533038366, 0)
  155. Button2.Size = UDim2.new(0, 114, 0, 26)
  156. Button2.Font = Enum.Font.SourceSans
  157. Button2.Text = "Kill Dragonfly Striker"
  158. Button2.TextColor3 = Color3.new(1, 1, 1)
  159. Button2.TextSize = 14
  160.  
  161. Button3.Parent = GUI
  162. Button3.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  163. Button3.Position = UDim2.new(0.0284810122, 0, 0.633038366, 0)
  164. Button3.Size = UDim2.new(0, 114, 0, 26)
  165. Button3.Font = Enum.Font.SourceSans
  166. Button3.Text = "kill Overseer Overlord"
  167. Button3.TextColor3 = Color3.new(1, 1, 1)
  168. Button3.TextSize = 14
  169.  
  170. Button4 .Parent = GUI
  171. Button4 .BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  172. Button4 .Position = UDim2.new(0.525316477, 0, 0.633038366, 0)
  173. Button4 .Size = UDim2.new(0, 114, 0, 26)
  174. Button4 .Font = Enum.Font.SourceSans
  175. Button4 .Text = "Kill Eternal Fairy"
  176. Button4 .TextColor3 = Color3.new(1, 1, 1)
  177. Button4 .TextSize = 14
  178.  
  179. Button5.Parent = GUI
  180. Button5.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  181. Button5.Position = UDim2.new(0.525316477, 0, 0.733038366, 0)
  182. Button5.Size = UDim2.new(0, 114, 0, 26)
  183. Button5.Font = Enum.Font.SourceSans
  184. Button5.Text = "Kill Cursed Mummy"
  185. Button5.TextColor3 = Color3.new(1, 1, 1)
  186. Button5.TextSize = 14
  187.  
  188. Button6.Parent = GUI
  189. Button6.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  190. Button6.Position = UDim2.new(0.0284810122, 0, 0.733038366, 0)
  191. Button6.Size = UDim2.new(0, 114, 0, 26)
  192. Button6.Font = Enum.Font.SourceSans
  193. Button6.Text = "Kill Space Cat"
  194. Button6.TextColor3 = Color3.new(1, 1, 1)
  195. Button6.TextSize = 14
  196.  
  197. Button7.Parent = GUI
  198. Button7.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  199. Button7.Position = UDim2.new(0.525316477, 0, 0.833038366, 0)
  200. Button7.Size = UDim2.new(0, 114, 0, 26)
  201. Button7.Font = Enum.Font.SourceSans
  202. Button7.Text = "Kill Mech Golem"
  203. Button7.TextColor3 = Color3.new(1, 1, 1)
  204. Button7.TextSize = 14
  205.  
  206. Button8.Parent = GUI
  207. Button8.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  208. Button8.Position = UDim2.new(0.0284810122, 0, 0.833038366, 0)
  209. Button8.Size = UDim2.new(0, 114, 0, 26)
  210. Button8.Font = Enum.Font.SourceSans
  211. Button8.Text = "Kill Astro Snowman"
  212. Button8.TextColor3 = Color3.new(1, 1, 1)
  213. Button8.TextSize = 14
  214.  
  215. KillAllWarriors.MouseButton1Down:connect(function()
  216. if modifier == true then
  217. modifier = false
  218. KillAllWarriors.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  219. else
  220. modifier = true
  221. KillAllWarriors.BackgroundColor3 = Color3.new(40, 127, 71)
  222. KillAllIdiots("Warrior", "Grassland", 1)
  223. end
  224. end)
  225.  
  226. KillAllLizard.MouseButton1Down:connect(function()
  227. if modifier == true then
  228. modifier = false
  229. KillAllLizard.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  230. else
  231. modifier = true
  232. KillAllLizard.BackgroundColor3 = Color3.new(40, 127, 71)
  233. KillAllIdiots("Lizard Boss", "Grassland", 1)
  234. end
  235. end)
  236.  
  237. KillAllSkeleton.MouseButton1Down:connect(function()
  238. if modifier == true then
  239. modifier = false
  240. KillAllSkeleton.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  241. else
  242. modifier = true
  243. KillAllSkeleton.BackgroundColor3 = Color3.new(40, 127, 71)
  244. KillAllIdiots("Skeleton", "Desert", 1)
  245. end
  246. end)
  247.  
  248. KillDesertBoss.MouseButton1Down:connect(function()
  249. if modifier == true then
  250. modifier = false
  251. KillDesertBoss.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  252. else
  253. modifier = true
  254. KillDesertBoss.BackgroundColor3 = Color3.new(40, 127, 71)
  255. KillAllIdiots("Kon the Crusher", "Desert", 1)
  256. end
  257. end)
  258.  
  259. KillTerrainSpecialist.MouseButton1Down:connect(function()
  260. if modifier == true then
  261. modifier = false
  262. KillTerrainSpecialist.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  263. else
  264. modifier = true
  265. KillTerrainSpecialist.BackgroundColor3 = Color3.new(40, 127, 71)
  266. KillAllIdiots("Terrain Specialist", "Iceland", 1)
  267. end
  268. end)
  269.  
  270. KillKoblox.MouseButton1Down:connect(function()
  271. if modifier == true then
  272. modifier = false
  273. KillKoblox.BackgroundColor3 = Color3.new(0.0588235, 0.0688235, 0.0588235)
  274. else
  275. modifier = true
  276. KillKoblox.BackgroundColor3 = Color3.new(40, 127, 71)
  277. KillAllIdiots("Korblox General", "Iceland", 1)
  278. end
  279. end)
  280.  
  281. KillSunstar.MouseButton1Down:connect(function()
  282. if modifier == true then
  283. modifier = false
  284. KillSunstar.BackgroundColor3 = Color3.new(0.0588235, 0.0688235, 0.0588235)
  285. else
  286. modifier = true
  287. KillSunstar.BackgroundColor3 = Color3.new(40, 127, 71)
  288. KillAllIdiots("Sunstar", "Lavaland", 1)
  289. end
  290. end)
  291.  
  292. KillMagmaFiend.MouseButton1Down:connect(function()
  293. if modifier == true then
  294. modifier = false
  295. KillMagmaFiend.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  296. else
  297. modifier = true
  298. KillMagmaFiend.BackgroundColor3 = Color3.new(40, 127, 71)
  299. KillAllIdiots("Magma Fiend", "Lavaland", 1)
  300. end
  301. end)
  302.  
  303. Button1.MouseButton1Down:connect(function()
  304. if modifier == true then
  305. modifier = false
  306. Button1.BackgroundColor3 = Color3.new(0.0588235, 0.0688235, 0.0588235)
  307. else
  308. modifier = true
  309. Button1.BackgroundColor3 = Color3.new(40, 127, 71)
  310. KillAllIdiots("Overseer Assassin", "Overseer", 1)
  311. end
  312. end)
  313.  
  314. Button2.MouseButton1Down:connect(function()
  315. if modifier == true then
  316. modifier = false
  317. Button2.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  318. else
  319. modifier = true
  320. Button2.BackgroundColor3 = Color3.new(40, 127, 71)
  321. KillAllIdiots("Dragonfly Striker", "Overseer", 1)
  322. end
  323. end)
  324.  
  325. Button3.MouseButton1Down:connect(function()
  326. if modifier == true then
  327. modifier = false
  328. Button3.BackgroundColor3 = Color3.new(0.0588235, 0.0688235, 0.0588235)
  329. else
  330. modifier = true
  331. Button3.BackgroundColor3 = Color3.new(40, 127, 71)
  332. KillAllIdiots("Overseer Overlord", "Overseer", 1)
  333. end
  334. end)
  335.  
  336. Button4 .MouseButton1Down:connect(function()
  337. if modifier == true then
  338. modifier = false
  339. Button4 .BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  340. else
  341. modifier = true
  342. Button4 .BackgroundColor3 = Color3.new(40, 127, 71)
  343. KillAllIdiots("Eternal Fairy", "Egypt", 1)
  344. end
  345. end)
  346.  
  347. Button5.MouseButton1Down:connect(function()
  348. if modifier == true then
  349. modifier = false
  350. Button5 .BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  351. else
  352. modifier = true
  353. Button5 .BackgroundColor3 = Color3.new(40, 127, 71)
  354. KillAllIdiots("Cursed Mummy", "Egypt", 1)
  355. end
  356. end)
  357.  
  358. Button6.MouseButton1Down:connect(function()
  359. if modifier == true then
  360. modifier = false
  361. Button6.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  362. else
  363. modifier = true
  364. Button6.BackgroundColor3 = Color3.new(40, 127, 71)
  365. KillAllIdiots("Space Cat", "Moon", 2)
  366. end
  367. end)
  368.  
  369. Button7.MouseButton1Down:connect(function()
  370. if modifier == true then
  371. modifier = false
  372. Button7.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  373. else
  374. modifier = true
  375. Button7.BackgroundColor3 = Color3.new(40, 127, 71)
  376. KillAllIdiots("Mech Golem", "Moon", 2)
  377. end
  378. end)
  379.  
  380. Button8.MouseButton1Down:connect(function()
  381. if modifier == true then
  382. modifier = false
  383. Button8.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  384. else
  385. modifier = true
  386. Button8.BackgroundColor3 = Color3.new(40, 127, 71)
  387. KillAllIdiots("Astro Snowman", "Moon", 2)
  388. end
  389. end)
  390. -- functions
  391.  
  392. -- KillAllWarriors
  393. function KillAllIdiots(mobName, area, sell)
  394. while modifier do
  395. hum = game.Players.LocalPlayer.Character.HumanoidRootPart
  396. thePlayer = game.Players.LocalPlayer.Character
  397. wait(.1)
  398. playerSword = game.Players.LocalPlayer.Data.Sword.Value
  399. enemie = game.Workspace.Map:FindFirstChild(area).Enemies:GetChildren()
  400. maxmoney = game.Players.LocalPlayer.Data.Capacity.Value
  401. for i = 1, #enemie do
  402. if enemie[i].Name == mobName and enemie[i].Humanoid.Health > 1 then
  403. money = game.Players.LocalPlayer.Data.Backpack.Value
  404. temp = money
  405. -- if ur at max money it sells ur money
  406. if money == maxmoney then
  407. if sell == 1 then
  408. hum.CFrame = CFrame.new(-95, 6, 77)
  409. wait(.3)
  410. hum.CFrame = CFrame.new(-94, 5, 73)
  411. wait(1)
  412. money = game.Players.LocalPlayer.Data.Backpack.Value
  413. temp = money
  414. else
  415. hum.CFrame = CFrame.new(-102, 6, -2483)
  416. wait(.3)
  417. hum.CFrame = CFrame.new(-103, 6, -2483)
  418. wait(1)
  419. money = game.Players.LocalPlayer.Data.Backpack.Value
  420. temp = money
  421. end
  422. end
  423. -- teleport to enemie
  424. hum.CFrame = enemie[i].PrimaryPart.CFrame * CFrame.new(0,0,2)
  425. -- kill till ur backpack changes
  426. while money == temp and modifier do
  427. -- inital variables
  428. hum = game.Players.LocalPlayer.Character.HumanoidRootPart
  429. hum.CFrame = enemie[i].PrimaryPart.CFrame * CFrame.new(0,0,2)
  430. thePlayer = game.Players.LocalPlayer.Character
  431. temp = game.Players.LocalPlayer.Data.Backpack.Value
  432. -- destroys projectiles
  433. debris = game.Workspace.Debris:GetChildren()
  434. for i = 1, #debris do
  435. if debris[i].Name == "Meteor" or debris[i].Name == "HitDetection" then
  436. debris[i]:Destroy()
  437. end
  438. end
  439. -- check if player is dead, if so wait till he respawns to keep going
  440. if thePlayer.Humanoid.Health < .2 then
  441. wait(6.5)
  442. end
  443. -- very fast swinging sword
  444. local A_1 = enemie[i]:FindFirstChild("Humanoid")
  445. local A_2 = thePlayer:FindFirstChild(playerSword)
  446. local A_3 = enemie[i]:FindFirstChild("HumanoidRootPart")
  447. local A_3 = A_3.Position
  448. local A_4 = 5
  449. local Event = game:GetService("ReplicatedStorage").RemoteEvents.Client.SwordAttack
  450. Event:FireServer(A_1, A_2, A_3, A_4)
  451. wait()
  452. end
  453. -- pick up potion if it dropped
  454. debris = game.Workspace.Debris:GetChildren()
  455. for i = 1, #debris do
  456. if debris[i].Name == "Potion" then
  457. hum.CFrame = debris[i].PrimaryPart.CFrame
  458. wait(.5)
  459. end
  460. end
  461. end
  462. end
  463. end
  464. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement