Advertisement
MRobbin99

project(template)

Feb 3rd, 2019
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.83 KB | None | 0 0
  1.  
  2. -- warrior sim https://www.roblox.com/games/2716845201/Warrior-Simulator?nl=true
  3. -- initial variables
  4. hum = game.Players.LocalPlayer.Character.HumanoidRootPart
  5. gamepasses = game.Players.LocalPlayer.Gamepass:GetChildren()
  6. thePlayer = game.Players.LocalPlayer.Character
  7. -- get gamepasses
  8. for i = 1, #gamepasses do
  9. gamepasses[i].Value = true
  10. end
  11. game.Players.LocalPlayer.Gamepass.DualWield.Enabled.Value = true
  12.  
  13. for i = 1, 50 do
  14. wait()
  15.  
  16. end
  17.  
  18. -- Objects
  19.  
  20. local ScreenGui = Instance.new("ScreenGui")
  21. local GUI = Instance.new("Frame")
  22. local Title = Instance.new("TextLabel")
  23. local KillAllWarriors= Instance.new("TextButton")
  24. local KillAllLizard = Instance.new("TextButton")
  25. local KillAllSkeleton = Instance.new("TextButton")
  26. local KillDesertBoss = Instance.new("TextButton")
  27. local Credits = Instance.new("TextLabel")
  28. local KillKoblox= Instance.new("TextButton")
  29. local KillTerrainSpecialist= Instance.new("TextButton")
  30.  
  31. -- Properties
  32.  
  33.  
  34. modifier = false
  35.  
  36.  
  37. ScreenGui.Parent = game.CoreGui
  38.  
  39. GUI.Name = "GUI"
  40. GUI.Parent = ScreenGui
  41. GUI.BackgroundColor3 = Color3.new(0.0784314, 0.0784314, 0.0784314)
  42. GUI.BorderColor3 = Color3.new(0.0980392, 0.0980392, 0.0980392)
  43. GUI.BorderSizePixel = 0
  44. GUI.Position = UDim2.new(0, 0, 1.330039531, 0)
  45. GUI.Size = UDim2.new(0, 316, 0, 339)
  46. GUI.Style = Enum.FrameStyle.RobloxRound
  47.  
  48. Title.Name = "Title"
  49. Title.Parent = GUI
  50. Title.Active = true
  51. Title.BackgroundColor3 = Color3.new(0.0980392, 0.0980392, 0.0980392)
  52. Title.Position = UDim2.new(0.114720426, 0, 0.00523944944, 0)
  53. Title.Size = UDim2.new(0, 200, 0, 50)
  54. Title.Font = Enum.Font.SourceSans
  55. Title.Text = "Warrior Simulator GUI"
  56. Title.TextColor3 = Color3.new(1, 1, 1)
  57. Title.TextSize = 14
  58.  
  59. KillAllWarriors.Name = "KillAllWarriors"
  60. KillAllWarriors.Parent = GUI
  61. KillAllWarriors.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  62. KillAllWarriors.Position = UDim2.new(0.0284810141, 0, 0.233038366, 0)
  63. KillAllWarriors.Size = UDim2.new(0, 114, 0, 26)
  64. KillAllWarriors.Font = Enum.Font.SourceSans
  65. KillAllWarriors.Text = "Kill All Warriors"
  66. KillAllWarriors.TextColor3 = Color3.new(1, 1, 1)
  67. KillAllWarriors.TextSize = 14
  68. KillAllWarriors.MouseButton1Down:connect(function()
  69.  
  70. if modifier == true then
  71. modifier = false
  72. KillAllWarriors.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  73. else
  74. modifier = true
  75. KillAllWarriors.BackgroundColor3 = Color3.new(40, 127, 71)
  76. KillAllIdiots("Warrior", "Grassland")
  77. end
  78. end)
  79.  
  80.  
  81. KillAllLizard.Name = "KillAllLizard"
  82. KillAllLizard.Parent = GUI
  83. KillAllLizard.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  84. KillAllLizard.Position = UDim2.new(0.525316477, 0, 0.233038351, 0)
  85. KillAllLizard.Size = UDim2.new(0, 114, 0, 26)
  86. KillAllLizard.Font = Enum.Font.SourceSans
  87. KillAllLizard.Text = "KillAllLizard"
  88. KillAllLizard.TextColor3 = Color3.new(1, 1, 1)
  89. KillAllLizard.TextSize = 14
  90. KillAllLizard.MouseButton1Down:connect(function()
  91. if modifier == true then
  92. modifier = false
  93. KillAllLizard.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  94. else
  95. modifier = true
  96. KillAllLizard.BackgroundColor3 = Color3.new(40, 127, 71)
  97. KillAllIdiots("Lizard Boss", "Grassland")
  98. end
  99. end)
  100.  
  101.  
  102. KillAllSkeleton.Name = "KillAllSkeleton"
  103. KillAllSkeleton.Parent = GUI
  104. KillAllSkeleton.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  105. KillAllSkeleton.Position = UDim2.new(0.03164557, 0, 0.402654856, 0)
  106. KillAllSkeleton.Size = UDim2.new(0, 114, 0, 26)
  107. KillAllSkeleton.Font = Enum.Font.SourceSans
  108. KillAllSkeleton.Text = "WKillAllSkeleton"
  109. KillAllSkeleton.TextColor3 = Color3.new(1, 1, 1)
  110. KillAllSkeleton.TextSize = 14
  111. KillAllSkeleton.MouseButton1Down:connect(function()
  112. if modifier == true then
  113. modifier = false
  114. KillAllSkeleton.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  115. else
  116. modifier = true
  117. KillAllSkeleton.BackgroundColor3 = Color3.new(40, 127, 71)
  118. KillAllIdiots("Skeleton", "Desert")
  119. end
  120. end)
  121.  
  122.  
  123. KillDesertBoss.Name = "KillDesertBoss"
  124. KillDesertBoss.Parent = GUI
  125. KillDesertBoss.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  126. KillDesertBoss.Position = UDim2.new(0.525316477, 0, 0.401179969, 0)
  127. KillDesertBoss.Size = UDim2.new(0, 114, 0, 26)
  128. KillDesertBoss.Font = Enum.Font.SourceSans
  129. KillDesertBoss.Text = "KillAllDesertBoss"
  130. KillDesertBoss.TextColor3 = Color3.new(1, 1, 1)
  131. KillDesertBoss.TextSize = 14
  132. KillDesertBoss.MouseButton1Down:connect(function()
  133. if modifier == true then
  134. modifier = false
  135. KillDesertBoss.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  136. else
  137. modifier = true
  138. KillDesertBoss.BackgroundColor3 = Color3.new(40, 127, 71)
  139. KillAllIdiots("Kon the Crusher", "Desert")
  140. end
  141. end)
  142.  
  143.  
  144. Credits.Name = "Credits"
  145. Credits.Parent = GUI
  146. Credits.BackgroundColor3 = Color3.new(1, 1, 1)
  147. Credits.Position = UDim2.new(0.00316455704, 0, 0.943952799, 0)
  148. Credits.Size = UDim2.new(0, 109, 0, 18)
  149. Credits.Font = Enum.Font.SourceSans
  150. Credits.Text = "Credits to MRobbin99"
  151. Credits.TextSize = 14
  152.  
  153. KillTerrainSpecialist.Name = "KillTerrainSpecialist"
  154. KillTerrainSpecialist.Parent = GUI
  155. KillTerrainSpecialist.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  156. KillTerrainSpecialist.Position = UDim2.new(0.0284810122, 0, 0.551622391, 0)
  157. KillTerrainSpecialist.Size = UDim2.new(0, 114, 0, 26)
  158. KillTerrainSpecialist.Font = Enum.Font.SourceSans
  159. KillTerrainSpecialist.Text = "Kill Terrain Specialist"
  160. KillTerrainSpecialist.TextColor3 = Color3.new(1, 1, 1)
  161. KillTerrainSpecialist.TextSize = 14
  162. KillTerrainSpecialist.MouseButton1Down:connect(function()
  163. if modifier == true then
  164. modifier = false
  165. KillTerrainSpecialist.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  166. else
  167. modifier = true
  168. KillTerrainSpecialist.BackgroundColor3 = Color3.new(40, 127, 71)
  169. KillAllIdiots("Terrain Specialist", "Iceland")
  170. end
  171. end)
  172.  
  173.  
  174. KillKoblox.Parent = GUI
  175. KillKoblox.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  176. KillKoblox.Position = UDim2.new(0.525316477, 0, 0.548672616, 0)
  177. KillKoblox.Size = UDim2.new(0, 114, 0, 26)
  178. KillKoblox.Font = Enum.Font.SourceSans
  179. KillKoblox.Text = "Kill Korblox General"
  180. KillKoblox.TextColor3 = Color3.new(1, 1, 1)
  181. KillKoblox.TextSize = 14
  182. KillKoblox.MouseButton1Down:connect(function()
  183. if modifier == true then
  184. modifier = false
  185. KillKoblox.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  186. else
  187. modifier = true
  188. KillKoblox.BackgroundColor3 = Color3.new(40, 127, 71)
  189. KillAllIdiots("Korblox General", "Iceland")
  190. end
  191. end)
  192.  
  193. -- functions
  194.  
  195. -- KillAllWarriors
  196. function KillAllIdiots(mobName, area)
  197. while modifier do
  198. wait(.1)
  199. print('try')
  200. playerSword = game.Players.LocalPlayer.Data.Sword.Value
  201. enemie = game.Workspace.Map:FindFirstChild(area).Enemies:GetChildren()
  202. maxmoney = game.Players.LocalPlayer.Data.Capacity.Value
  203. for i = 1, #enemie do
  204. if enemie[i].Name == mobName and enemie[i].Humanoid.Health > 1 then
  205. money = game.Players.LocalPlayer.Data.Backpack.Value
  206. temp = money
  207. -- if ur at max money it sells ur money
  208. if money == maxmoney then
  209. hum.CFrame = CFrame.new(-95, 6, 77)
  210. wait(.3)
  211. hum.CFrame = CFrame.new(-94, 5, 73)
  212. wait(1)
  213. money = game.Players.LocalPlayer.Data.Backpack.Value
  214. temp = money
  215. end
  216. -- teleport to enemie
  217. hum.CFrame = enemie[i].PrimaryPart.CFrame * CFrame.new(0,0,2)
  218. -- kill till ur backpack changes
  219. while money == temp and modifier do
  220. temp = game.Players.LocalPlayer.Data.Backpack.Value
  221. local A_1 = enemie[i].Humanoid
  222. local A_2 = thePlayer[playerSword]
  223. local A_3 = enemie[i].PrimaryPart.Position
  224. local A_4 = 0
  225. local Event = game:GetService("ReplicatedStorage").RemoteEvents.Client.SwordAttack
  226. Event:FireServer(A_1, A_2, A_3, A_4)
  227. wait()
  228. end
  229. -- pick up potion if it dropped
  230. debris = game.Workspace.Debris:GetChildren()
  231. for i = 1, #debris do
  232. if debris[i].Name == "Potion" then
  233. hum.CFrame = debris[i].PrimaryPart.CFrame
  234. wait(.5)
  235. end
  236. end
  237. end
  238. end
  239. end
  240. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement