mambo99
|
  |
| Joined: 01 Feb 2009 |
| Total Posts: 2701 |
|
| |
|
mambo99
|
  |
| Joined: 01 Feb 2009 |
| Total Posts: 2701 |
|
| |
|
|
| 04 May 2010 09:12 PM |
function onTouch(hit) h = hit.Parent:findFirstChild("Humanoid") --Finds humanoid that hit it if h ~= nil then --if h exists then h.Health = 0 -- Kills player Could also be hit.Parent.Head:Remove() end end
script.Parent.Touched:connect(onTouch) --Connection line |
|
|
| Report Abuse |
|
|
|
| 04 May 2010 09:32 PM |
| yeah, if you absolutly want the head to come off, use the "hit.Parent.Head:Remove()" part of the commentary. |
|
|
| Report Abuse |
|
|
acid1103
|
  |
| Joined: 28 Jul 2009 |
| Total Posts: 1574 |
|
|
| 04 May 2010 09:35 PM |
or if you want it to roll off
h=Instance.new("BodyVelocity") h.velocity = Vector3.new (0,0,3) h.Parent = hit.Parent.Head hit.Parent.Head:BreakJoints() wait(0.5)h:remove()--LOL The head will roll to the ground XD |
|
|
| Report Abuse |
|
|
psrj1
|
  |
| Joined: 21 Jun 2009 |
| Total Posts: 287 |
|
|
| 04 May 2010 09:39 PM |
| Wouldn't the whole body fall apart anyway. |
|
|
| Report Abuse |
|
|
ball360
|
  |
| Joined: 31 Mar 2009 |
| Total Posts: 1557 |
|
| |
|
acid1103
|
  |
| Joined: 28 Jul 2009 |
| Total Posts: 1574 |
|
| |
|
acid1103
|
  |
| Joined: 28 Jul 2009 |
| Total Posts: 1574 |
|
| |
|
|
| 04 May 2010 10:31 PM |
Or, Humaniod.Health=0.
~JONESY~ |
|
|
| Report Abuse |
|
|
mambo99
|
  |
| Joined: 01 Feb 2009 |
| Total Posts: 2701 |
|
| |
|