Advertisement
Guest User

reagan

a guest
Apr 24th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. local zombie = "Really red" -- brickcolor of zombie team
  2. local debounce = true
  3. local dmg = 25
  4.  
  5. game.Players.PlayerAdded:connect(function(p)
  6. p.CharacterAdded:connect(function(char)
  7. if p.TeamColor == BrickColor.new(zombie) then
  8. wait(1)
  9. for i,v in pairs(char:GetChildren()) do
  10. if v:IsA("Part") then
  11. v.Touched:connect(function(hit)
  12. local h = hit.Parent:FindFirstChild("Humanoid")
  13. if h and debounce == true then
  14. debounce = false
  15. h.Health = h.Health-dmg
  16. wait(1)
  17. debounce = true
  18. end
  19. end)
  20. end
  21. end
  22. end
  23. end)
  24. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement