I am working on a zombie game and I am making a zombie that pukes damage bricks. The only problem with this is that the bricks hurt other zombies and hurts the zombie that is puking it.
This is the script for the kill brick. It doesn't damage anything now.
function touch(hit)
if not hit.Parent.Name == "Zombie" then
hit.Parent:FindFirstChild("Humanoid").Health = hit.Parent:FindFirstChild("Humanoid").Health -50
end
end
script.Parent.Touched:connect(touch)
Any help given is appreciated. Thank you!
