|
| 02 Feb 2012 11:55 AM |
If Humanoid.Health = 0 Then print ('You died... LOLFAIL') |
|
|
| Report Abuse |
|
|
|
| 02 Feb 2012 11:59 AM |
| no, one you did't stat what humanoid and two is that you dont got an end. |
|
|
| Report Abuse |
|
|
|
| 02 Feb 2012 11:59 AM |
| your script all wrong "Then" should be with the first function and not capitelised |
|
|
| Report Abuse |
|
|
|
| 02 Feb 2012 12:00 PM |
| and it should be "==" not "=" |
|
|
| Report Abuse |
|
|
|
| 02 Feb 2012 05:17 PM |
| I meant to put a script something like that, not that specificly. |
|
|
| Report Abuse |
|
|
|
| 02 Feb 2012 05:19 PM |
Meh,
script.Parent.Humanoid.Died:connect(function() --Stuff end)
† KMXD † |
|
|
| Report Abuse |
|
|
|
| 02 Feb 2012 05:39 PM |
@Above
Your assuming the script is within the Character, they would need to PUT the script, within the character.. |
|
|
| Report Abuse |
|
|
|
| 02 Feb 2012 05:40 PM |
@^ Well I can't assume anything else, as the creator of the thread didn't specify.
† KMXD † |
|
|
| Report Abuse |
|
|
|
| 02 Feb 2012 05:42 PM |
Humanoid.MaxHealth=0 not Humanoid.Health=0 |
|
|
| Report Abuse |
|
|
|
| 02 Feb 2012 06:57 PM |
| I meant this as... Like a script in a brick that if you touch it, you're dead. |
|
|
| Report Abuse |
|
|
mage11561
|
  |
| Joined: 03 Sep 2008 |
| Total Posts: 13217 |
|
|
| 02 Feb 2012 07:04 PM |
function onTouched(p) a = p.Parent.Humanoid if a then a.Health = 0 end end script.Parent.Touched:connect(onTouched)
|
|
|
| Report Abuse |
|
|