yourself
|
  |
| Joined: 24 Jul 2006 |
| Total Posts: 3013 |
|
|
| 20 Jun 2016 04:23 PM |
Script is to destroy on touch.
-------------------------------
bin = script.Parent
function onTouched(Part2) local h = Part2.Parent:FindFirstChild("Humanoid") if h then while h.Health > 0 do h.Health = h.Health - 100 wait(1) end end end
bin.Touched:connect(onTouched)
Classic-Plastic ( ͡° ͜ʖ ͡°) |
|
|
| Report Abuse |
|
|
yourself
|
  |
| Joined: 24 Jul 2006 |
| Total Posts: 3013 |
|
|
| 20 Jun 2016 04:25 PM |
Bump
Classic-Plastic ( ͡° ͜ʖ ͡°) |
|
|
| Report Abuse |
|
|
|
| 20 Jun 2016 04:27 PM |
| That script seems to kill rather than destroy |
|
|
| Report Abuse |
|
|
yourself
|
  |
| Joined: 24 Jul 2006 |
| Total Posts: 3013 |
|
|
| 20 Jun 2016 04:28 PM |
Thanks.
Classic-Plastic ( ͡° ͜ʖ ͡°) |
|
|
| Report Abuse |
|
|
|
| 20 Jun 2016 04:29 PM |
script.Parent.Touched:connect(function(h) if h and h.Parent and h.Parent:FindFirstChild('Humanoid') then h.Parent:FindFirstChild('Humanoid').Health = 0 end end
|
|
|
| Report Abuse |
|
|