Advertisement
HansCSia320

The Living Dead Scripts

Apr 30th, 2019
2,706
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.42 KB | None | 0 0
  1. Kills players and zombies with a single click, glitchy
  2. Code:
  3. local mouse=game.Players.LocalPlayer:GetMouse()
  4. function onButton1Down(mouse)
  5.  
  6.  
  7.  
  8.  
  9. local kek
  10. local horz =true
  11. local tp = mouse.Target.Parent
  12. if tp:FindFirstChild("Humanoid") and tp.Name=="Zombie" then--zomb
  13. kek= tp.Humanoid
  14. horz=true
  15.  
  16. else--human
  17. kek=tp.Humanoid
  18. horz=false
  19.  
  20. end
  21.  
  22. if horz==true then--zomb
  23. game.Workspace.resources.events.humTakeDamage:FireServer(kek,1009, tp.Torso)
  24. elseif horz==false then--humn
  25. game.Workspace.resources.events.humTakeDamage:FireServer(kek, 1009)
  26. end
  27.  
  28.  
  29. end
  30. mouse.Button1Down:connect(function() onButton1Down(mouse) end)
  31.  
  32. Kills all zombies in the server. You can use while wait for inf money
  33. Code:
  34. work=game.workspace.commonInfected
  35. for i,v in pairs(work:children())do
  36. if v.Name=="Zombie" then
  37. for y,n in pairs(v:children())do
  38. if n.ClassName=="Humanoid" then
  39. game.Workspace.resources.events.humTakeDamage:FireServer(n,1009, v.Torso)
  40. end end end end
  41.  
  42. kill all players, including you. Gives negative rep so I don't recommend it
  43. Code:
  44. plr=game.Players
  45. for i,v in pairs(plr:children())do
  46. if v.Name~=game.Players.LocalPlayer then
  47. game.Workspace.resources.events.humTakeDamage:FireServer(v.Character.Humanoid, 1009)
  48. end
  49. end
  50.  
  51. loopkill a specific player--untested
  52. Code:
  53. nameplr=""---full name
  54. while wait() do
  55. game.Workspace.resources.events.humTakeDamage:FireServer(game.Players[nameplr].Character.Humanoid, 1009)
  56. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement