Advertisement
MRobbin99

Warrior Simulator - Auto Farm

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