Advertisement
awesomeman754

Kill block script on roblox

Dec 31st, 2012
9,944
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. function onTouched(part)
  2.  
  3. local h = part.Parent:findFirstChild("Humanoid") -- If this does not work check to make sure the part name is right
  4.  
  5. if h ~= nil then
  6.  
  7. h.Health = 0
  8.  
  9. end
  10.  
  11. end
  12.  
  13. script.Parent.Touched:connect(onTouched)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement