Advertisement
zombieslayerwtf

zombie attack script

Apr 3rd, 2018
47,804
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.54 KB | None | 0 0
  1. local ply = game:GetService("Players").LocalPlayer
  2.  
  3. -- Objects
  4.  
  5. local ScreenGui = Instance.new("ScreenGui")
  6. local Credits = Instance.new("TextLabel")
  7. local Filter_Zomb = Instance.new("TextLabel")
  8. local Filter_Boss = Instance.new("TextLabel")
  9. local BigHead = Instance.new("TextLabel")
  10. local TPHeads = Instance.new("TextLabel")
  11. local InfiniteKnife = Instance.new("TextLabel")
  12. local Aimbot = Instance.new("TextLabel")
  13.  
  14. local bht = false -- BigHead
  15. local fzt = false -- FilterZombie
  16. local fbt = false -- FilterBoss
  17. local tht = false -- TPHeads
  18. local ik = false -- Infinite Knives
  19. local ab = false -- Aimbot
  20. local g = true -- Toggle Gui
  21.  
  22. -- Properties
  23.  
  24. ScreenGui.Parent = game:GetService("CoreGui")
  25.  
  26. Credits.Name = "Credits"
  27. Credits.Parent = ScreenGui
  28. Credits.BackgroundColor3 = Color3.new(1, 1, 1)
  29. Credits.BackgroundTransparency = 1
  30. Credits.Position = UDim2.new(0, -20, 0, 3)
  31. Credits.Size = UDim2.new(0, 100, 0, 10)
  32. Credits.Font = Enum.Font.Arial
  33. Credits.Text = "Areshook.xyz"
  34. Credits.TextColor3 = Color3.fromRGB(234, 31, 31)
  35. Credits.TextSize = 17
  36. Credits.TextWrapped = true
  37. Credits.TextXAlignment = Enum.TextXAlignment.Right
  38.  
  39. Filter_Zomb.Name = "Filter_Zomb"
  40. Filter_Zomb.Parent = ScreenGui
  41. Filter_Zomb.BackgroundColor3 = Color3.new(1, 1, 1)
  42. Filter_Zomb.BackgroundTransparency = 1
  43. Filter_Zomb.BorderSizePixel = 0
  44. Filter_Zomb.Position = UDim2.new(0, 50, 0, 20)
  45. Filter_Zomb.Size = UDim2.new(0, 200, 0, 10)
  46. Filter_Zomb.Font = Enum.Font.Arial
  47. Filter_Zomb.TextColor3 = Color3.fromRGB(170, 64, 66)
  48. Filter_Zomb.TextSize = 14
  49.  
  50. Filter_Boss.Name = "Filter_Boss"
  51. Filter_Boss.Parent = ScreenGui
  52. Filter_Boss.BackgroundColor3 = Color3.new(1, 1, 1)
  53. Filter_Boss.BackgroundTransparency = 1
  54. Filter_Boss.BorderSizePixel = 0
  55. Filter_Boss.Position = UDim2.new(0, 50, 0, 40)
  56. Filter_Boss.Size = UDim2.new(0, 200, 0, 10)
  57. Filter_Boss.Font = Enum.Font.Arial
  58. Filter_Boss.TextColor3 = Color3.fromRGB(170, 64, 66)
  59. Filter_Boss.TextSize = 14
  60.  
  61. BigHead.Name = "BigHead"
  62. BigHead.Parent = ScreenGui
  63. BigHead.BackgroundColor3 = Color3.new(1, 1, 1)
  64. BigHead.BackgroundTransparency = 1
  65. BigHead.BorderColor3 = Color3.fromRGB(170, 64, 66)
  66. BigHead.Position = UDim2.new(0, 50, 0, 60)
  67. BigHead.Size = UDim2.new(0, 200, 0, 10)
  68. BigHead.Font = Enum.Font.Arial
  69. BigHead.TextColor3 = Color3.fromRGB(170, 64, 66)
  70. BigHead.TextSize = 14
  71.  
  72. TPHeads.Name = "TPHeads"
  73. TPHeads.Parent = ScreenGui
  74. TPHeads.BackgroundColor3 = Color3.new(1, 1, 1)
  75. TPHeads.BackgroundTransparency = 1
  76. TPHeads.Position = UDim2.new(0, 50, 0, 80)
  77. TPHeads.Size = UDim2.new(0, 200, 0, 10)
  78. TPHeads.Font = Enum.Font.Arial
  79. TPHeads.TextColor3 = Color3.fromRGB(170, 64, 66)
  80. TPHeads.TextSize = 14
  81.  
  82. InfiniteKnife.Name = "InfiniteKnife"
  83. InfiniteKnife.Parent = ScreenGui
  84. InfiniteKnife.BackgroundColor3 = Color3.new(1, 1, 1)
  85. InfiniteKnife.BackgroundTransparency = 1
  86. InfiniteKnife.Position = UDim2.new(0, 50, 0, 100)
  87. InfiniteKnife.Size = UDim2.new(0, 200, 0, 10)
  88. InfiniteKnife.Font = Enum.Font.Arial
  89. InfiniteKnife.TextColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  90. InfiniteKnife.TextSize = 14
  91.  
  92. Aimbot.Name = "Aimbot"
  93. Aimbot.Parent = ScreenGui
  94. Aimbot.BackgroundColor3 = Color3.new(1, 1, 1)
  95. Aimbot.BackgroundTransparency = 1
  96. Aimbot.Position = UDim2.new(0, 50, 0, 120)
  97. Aimbot.Size = UDim2.new(0, 200, 0, 10)
  98. Aimbot.Font = Enum.Font.Arial
  99. Aimbot.TextColor3 = Color3.new(0.392157, 0.392157, 0.392157)
  100. Aimbot.TextSize = 14
  101.  
  102. --Gui End
  103. local UserInputService = game:GetService("UserInputService")
  104.  
  105. UserInputService.InputBegan:connect(function(key,stuff)
  106. if key.KeyCode == Enum.KeyCode.p then
  107. g = false
  108. script.Disabled = true
  109. TPHeads:remove()
  110. BigHead:remove()
  111. Filter_Boss:remove()
  112. Filter_Zomb:remove()
  113. Credits:remove()
  114. end
  115. if key.KeyCode == Enum.KeyCode.z then
  116. if fzt == false then
  117. fzt = true
  118. else
  119. fzt = false
  120. end
  121. end
  122. if key.KeyCode == Enum.KeyCode.x then
  123. if fbt == false then
  124. fbt = true
  125. else
  126. fbt = false
  127. end
  128. end
  129. if key.KeyCode == Enum.KeyCode.c then
  130. if bht == false then
  131. bht = true
  132. else
  133. bht = false
  134. end
  135. end
  136. if key.KeyCode == Enum.KeyCode.v then
  137. if tht == false then
  138. tht = true
  139. else
  140. tht = false
  141. end
  142. end
  143. if key.KeyCode == Enum.KeyCode.b then
  144. if ik == false then
  145. ik = true
  146. else
  147. ik = false
  148. end
  149. end
  150. if key.KeyCode == Enum.KeyCode.n then
  151. if ab == false then
  152. ab = true
  153. else
  154. ab = false
  155. end
  156. end
  157. if key.KeyCode == Enum.KeyCode.E then
  158. local bt = Instance.new("BodyThrust")
  159. bt.Parent = ply.Character.Torso
  160. bt.Force = Vector3.new(0,3250,0)
  161. game:GetService("Debris"):AddItem(bt,0.05)
  162. end
  163. local mouse = ply:GetMouse()
  164. if key.KeyCode == Enum.KeyCode.Q then
  165. ply.Character.HumanoidRootPart.CFrame = CFrame.new(mouse.Hit.x, mouse.Hit.y + 5, mouse.Hit.z)
  166. end
  167.  
  168. end)
  169.  
  170. game:GetService("RunService").RenderStepped:connect(function()
  171. if g == true then
  172.  
  173. if fzt == false then
  174. Filter_Zomb.Text = "Filter Zombies [".."OFF".."] - z"
  175. Filter_Zomb.TextColor3 = Color3.fromRGB(170, 64, 66)
  176. else
  177. Filter_Zomb.Text = "Filter Zombies [".."ON".."] - z"
  178. Filter_Zomb.TextColor3 = Color3.fromRGB(132, 234, 31)
  179. end
  180.  
  181. if fbt == false then
  182. Filter_Boss.Text = "Filter Boss [".."OFF".."] - x"
  183. Filter_Boss.TextColor3 = Color3.fromRGB(170, 64, 66)
  184. else
  185. Filter_Boss.Text = "Filter Boss [".."ON".."] - x"
  186. Filter_Boss.TextColor3 = Color3.fromRGB(132, 234, 31)
  187. end
  188.  
  189. if bht == false then
  190. BigHead.Text = "BigHead [".."OFF".."] - c"
  191. BigHead.TextColor3 = Color3.fromRGB(170, 64, 66)
  192. else
  193. BigHead.Text = "BigHead [".."ON".."] - c"
  194. BigHead.TextColor3 = Color3.fromRGB(132, 234, 31)
  195. end
  196.  
  197. if tht == false then
  198. TPHeads.Text = "TPHeads [".."OFF".."] - v "
  199. TPHeads.TextColor3 = Color3.fromRGB(170, 64, 66)
  200. else
  201. TPHeads.Text = "TPHeads [".."ON".."] - v "
  202. TPHeads.TextColor3 = Color3.fromRGB(132, 234, 31)
  203. end
  204.  
  205. if ik == false then
  206. InfiniteKnife.Text = "InfiniteKnife [".."OFF".."] - b "
  207. InfiniteKnife.TextColor3 = Color3.fromRGB(170, 64, 66)
  208. else
  209. InfiniteKnife.Text = "InfiniteKnife [".."ON".."] - b "
  210. InfiniteKnife.TextColor3 = Color3.fromRGB(132, 234, 31)
  211. end
  212.  
  213. if ab == false then
  214. Aimbot.Text = "Aimbot [".."OFF".."] - n "
  215. Aimbot.TextColor3 = Color3.fromRGB(170, 64, 66)
  216. else
  217. Aimbot.Text = "Aimbot [".."ON".."] - n "
  218. Aimbot.TextColor3 = Color3.fromRGB(132, 234, 31)
  219. end
  220. end
  221. end)
  222.  
  223. game:GetService("RunService").RenderStepped:connect(function()
  224. if g == true then
  225.  
  226. if fzt == false then
  227.  
  228. else
  229.  
  230. end
  231.  
  232. if fbt == false then
  233.  
  234. else
  235.  
  236. end
  237.  
  238. if tht == false then
  239.  
  240. else
  241. if fzt == true then
  242. for i,v in pairs(game.Workspace.enemies:GetChildren()) do
  243. if v.Humanoid.Health ~= 0 or v.Humanoid == nil then
  244. if v:FindFirstChild("Head") then
  245. v.Head.CFrame = ply.Character.Torso.CFrame*CFrame.new(0,0,-10)
  246. v.Head.CanCollide = false
  247. v.Head.Size = Vector3.new(2,2,2)
  248. end
  249. end
  250. end
  251. end
  252. if fbt == true then
  253. for i,v in pairs(game.Workspace.BossFolder:GetChildren()) do
  254. if v.Humanoid.Health ~= 0 and v.Humanoid ~= nil then
  255. if v:FindFirstChild("Head") then
  256. v.Head.CFrame = ply.Character.Torso.CFrame*CFrame.new(0,0,-10)
  257. v.Head.CanCollide = false
  258. v.Head.Size = Vector3.new(2,2,2)
  259. end
  260. else
  261. if v:FindFirstChild("Head") then
  262. v.Head:remove()
  263. end
  264. end
  265. end
  266. end
  267. end
  268.  
  269. if bht == false then
  270.  
  271. else
  272. if fzt == true then
  273. local Size_of_head = 20
  274. for i,v in pairs(game.Workspace.enemies:GetChildren()) do
  275. if v:FindFirstChild("Head") then
  276. v.Head.CanCollide = false
  277. v.Head.Size = Vector3.new(Size_of_head,Size_of_head,Size_of_head)
  278. v.Head.CFrame = v.Torso.CFrame * CFrame.new(0,Size_of_head/2,0)
  279. end
  280. end
  281. end
  282. if fbt == true then
  283. local Size_of_head = 20
  284. for i,v in pairs(game.Workspace.BossFolder:GetChildren()) do
  285. if v:FindFirstChild("Head") then
  286. v.Head.CanCollide = false
  287. v.Head.Size = Vector3.new(Size_of_head,Size_of_head,Size_of_head)
  288. v.Head.CFrame = v.Torso.CFrame * CFrame.new(0,Size_of_head/2,0)
  289. end
  290. end
  291. end
  292. end
  293.  
  294. if ab == false then
  295.  
  296. else
  297. if fbt == true then
  298. for i, v in pairs(workspace.BossFolder:GetDescendants()) do
  299. if v.Name == "Head" then
  300. currenttool = ply.Character:GetChildren()
  301. for i = 1, #currenttool do
  302. if currenttool[i].ClassName == "Tool" then
  303. game.ReplicatedStorage.Gun:FireServer({
  304. ["Normal"] = Vector3.new(0, 0, 0),
  305. ["Direction"] = v.Position,
  306. ["Name"] = currenttool[i].Name,
  307. ["Hit"] = v,
  308. ["Origin"] = v.Position,
  309. ["Pos"] = v.Position,
  310. })
  311. end
  312. end
  313. end
  314. end
  315. end
  316. if fzt == true then
  317. for i, v in pairs(workspace.enemies:GetDescendants()) do
  318. if v.Name == "Head" then
  319. currenttool = ply.Character:GetChildren()
  320. for i = 1, #currenttool do
  321. if currenttool[i].ClassName == "Tool" then
  322. game.ReplicatedStorage.Gun:FireServer({
  323. ["Normal"] = Vector3.new(0, 0, 0),
  324. ["Direction"] = v.Position,
  325. ["Name"] = currenttool[i].Name,
  326. ["Hit"] = v,
  327. ["Origin"] = v.Position,
  328. ["Pos"] = v.Position,
  329. })
  330. end
  331. end
  332. end
  333. end
  334. end
  335. end
  336.  
  337. if ik == false then
  338.  
  339. else
  340. local Player = ply
  341. local Mouse = ply:GetMouse()
  342. if ik ~= false then
  343. function FireKnife()
  344. local GetCurrentKnife = ply.Character:GetChildren()
  345. for i=1, #GetCurrentKnife do
  346. if GetCurrentKnife[i].ClassName == "Tool" then
  347. game.ReplicatedStorage.forhackers:InvokeServer(
  348. "throw",
  349. GetCurrentKnife[i].Name,
  350. CFrame.new(Mouse.Hit.p)
  351. )
  352. end
  353. end
  354. end
  355. end
  356.  
  357. Mouse.Button1Down:connect(function()
  358. if ik ~= false then
  359. FireKnife()
  360. end
  361. end)
  362.  
  363. end
  364. end
  365. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement