I am trying to make a button that is connected to the zombie's chest or something that kills the zombie. The zombie doesn't have a name to prevent the name from showing, but there is a humanoid part called "Zombie" if that could be used. Here is the script:
function OnClick()
script.Parent.Parent.health = 0
end
I am still new at scripting, so please go easy on me. :)

1 comment
You need to connect it to an event.