BruceAB12
|
  |
| Joined: 19 Jan 2012 |
| Total Posts: 3238 |
|
|
| 15 Feb 2013 07:43 PM |
function onTouched(part) script.Parent.Touched:connect(function(hit) local h = part.Parent:findFirstChild("Humanoid") if hit.Parent:FindFirstChild("Humanoid") and hit.Parent.Name ~= "Zombie" then h.Health = h.Health -0 if h~=nil then h.Health = h.Health -10 wait(0) end end
end) end script.Parent.Touched:connect(onTouched)
This is suppose to do damage only to the humanoids not called "Zombie" |
|
|
| Report Abuse |
|
|
|
| 15 Feb 2013 07:44 PM |
| just saying that is two scripts combined... |
|
|
| Report Abuse |
|
|
BruceAB12
|
  |
| Joined: 19 Jan 2012 |
| Total Posts: 3238 |
|
| |
|
|
| 15 Feb 2013 07:46 PM |
this is a complete script:
script.Parent.Touched:connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") and hit.Parent.Name ~= "Zombie" then hit.Parent.Humanoid:TakeDamage(10) end end) |
|
|
| Report Abuse |
|
|