Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local zombie = "Really red" -- brickcolor of zombie team
- local debounce = true
- local dmg = 25
- game.Players.PlayerAdded:connect(function(p)
- p.CharacterAdded:connect(function(char)
- if p.TeamColor == BrickColor.new(zombie) then
- wait(1)
- for i,v in pairs(char:GetChildren()) do
- if v:IsA("Part") then
- v.Touched:connect(function(hit)
- local h = hit.Parent:FindFirstChild("Humanoid")
- if h and debounce == true then
- debounce = false
- h.Health = h.Health-dmg
- wait(1)
- debounce = true
- end
- end)
- end
- end
- end
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement