Advertisement
_Thanh_Thy_Cute_

Undead Defense Tycoon KILL ALL

Nov 20th, 2021
1,141
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 1 0
  1. getgenv().KillAll = true
  2.  
  3. local plr = game.Players.LocalPlayer
  4.  
  5. while true do
  6. if getgenv().KillAll then
  7. for i,v in pairs(workspace.Zombies:GetChildren()) do
  8. if plr.Character and plr.Character:FindFirstChild("HumanoidRootPart") and v:FindFirstChild("Head") and v:FindFirstChildOfClass("Humanoid") and v:FindFirstChildOfClass("Humanoid").Health ~= 0 then
  9. if not plr.Character:FindFirstChildOfClass("Tool") then
  10. for _,gun in pairs(plr.Backpack:GetChildren()) do
  11. if gun:IsA("Tool") and gun:FindFirstChild("Fire") then
  12. gun.Parent = plr.Character
  13. tool = gun
  14. end
  15. end
  16. else
  17. if plr.Character:FindFirstChildOfClass("Tool"):FindFirstChild("Fire") then
  18. tool = plr.Character:FindFirstChildOfClass("Tool")
  19. end
  20. end
  21. local yes = {}
  22. for i = 1,10 do
  23. table.insert(yes,{[1] = v.Head,[2] = v.Head.Position,[3] = Vector3.new(0,0,0),[4] = 0})
  24. end
  25. tool.Fire:FireServer(plr.Character.HumanoidRootPart.Position, tool.Handle.Muzzle.WorldPosition, {[1] = Vector3.new(0, 0, 0)}, require(tool.Config).BulletData, yes)
  26. end
  27. end
  28. end
  29. task.wait(0.1)
  30. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement