Advertisement
ZKiller

ROBLOX Zombie Script

Aug 3rd, 2017
23,552
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. function dmg(hit)
  2. local h = hit.Parent:FindFirstChild("Humanoid")
  3. if h ~= nil then
  4. h.Health = h.Health - 1
  5. end
  6. end
  7. function infect(hit)
  8. local h = hit.Parent:FindFirstChild("Humanoid")
  9. if h ~= nil and hit.Parent ~= script.Parent then
  10. local infection = script:Clone()
  11. infection.Parent = hit.Parent
  12. end
  13. end
  14. script.Parent.Torso.Touched:connect(infect)
  15. script.Parent["Left Arm"].Touched:connect(dmg)
  16. script.Parent["Right Arm"].Touched:connect(dmg)
  17. while true do
  18. wait(.1)
  19. script.Parent["Head"].BrickColor = BrickColor.new("Forest green")
  20. script.Parent["Left Arm"].BrickColor = BrickColor.new("Forest green")
  21. script.Parent["Left Leg"].BrickColor = BrickColor.new("Dirt brown")
  22. script.Parent["Right Arm"].BrickColor = BrickColor.new("Forest green")
  23. script.Parent["Right Leg"].BrickColor = BrickColor.new("Dirt brown")
  24. script.Parent["Torso"].BrickColor = BrickColor.new("Dirt brown")
  25. script.Parent.Humanoid.MaxHealth = 75
  26. script.Parent.Humanoid.WalkSpeed = 13
  27. script.Parent.Animate.walk.WalkAnim.AnimationId = "http://www.roblox.com/asset/?id=956920334"
  28. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement