|
| 08 Jan 2014 08:43 PM |
| a block that if you touch you die? help |
|
|
| Report Abuse |
|
|
FHooga
|
  |
| Joined: 12 Dec 2013 |
| Total Posts: 23 |
|
|
| 08 Jan 2014 09:21 PM |
This should be in scripting help. I think this would work though.
function Touched (x) local h = x.Parent:FindFirstChild("Humanoid") if h ~= nil then h.Health = 0 end end
script.Parent.Touched:connect(Touched) |
|
|
| Report Abuse |
|
|
FHooga
|
  |
| Joined: 12 Dec 2013 |
| Total Posts: 23 |
|
|
| 08 Jan 2014 09:35 PM |
| ^ Dunno where it should be. I forgot that scripting helpers are for when you have problems, not a request. ( I think ) |
|
|
| Report Abuse |
|
|
| |
|