|
| 25 Mar 2015 09:10 PM |
I have a brick with a Humanoid that is supposed to spawn a coin when it dies, but it won't die. Its health just stays at 0 and it is still alive.
Here's the layout for the whole brick:
Model > Head > scripts/Model > Humanoid > scripts (same model, slash indicates another branch)
It can't die or take damage. I've tried hitting it with a sword, and it won't activate the Humanoid.Died function. Not even when I remotely set its health to 0. It's supposed to remove itself when it dies, but it won't. Any help, because this is basically a barrier to finishing my game. |
|
|
| Report Abuse |
|
|
amanda
|
  |
| Joined: 21 Nov 2006 |
| Total Posts: 5925 |
|
|
| 25 Mar 2015 09:12 PM |
| The Humanoid's 'damned' property is set to true, toggle that before continuing. |
|
|
| Report Abuse |
|
|
|
| 25 Mar 2015 09:15 PM |
@amanda
I was referring Damned as not to a parent, but a statement.
'That damned machine.' |
|
|
| Report Abuse |
|
|
|
| 25 Mar 2015 09:17 PM |
| Please help. Any help would be appreciated. |
|
|
| Report Abuse |
|
|
| |
|
instawin
|
  |
| Joined: 04 Jun 2013 |
| Total Posts: 8777 |
|
| |
|
|
| 25 Mar 2015 09:29 PM |
@insta
Dude, come on. Seriously. Please help. |
|
|
| Report Abuse |
|
|
robocu3
|
  |
| Joined: 13 Mar 2009 |
| Total Posts: 6485 |
|
|
| 25 Mar 2015 09:30 PM |
humanoid is leet pro god confirmed 2: game of the year edition(featuring dante from devil may cry)
-=Robo=- |
|
|
| Report Abuse |
|
|
instawin
|
  |
| Joined: 04 Jun 2013 |
| Total Posts: 8777 |
|
|
| 25 Mar 2015 09:32 PM |
i have a feeling we would have to see your script for this one
i can't really think of much
does the model fall apart when the game starts? |
|
|
| Report Abuse |
|
|
| |
|
|
| 25 Mar 2015 10:17 PM |
@insta
no, it doesn't fall
@other guy w/ torso
hm. maybe i'll try that |
|
|
| Report Abuse |
|
|
K7Q
|
  |
| Joined: 23 Mar 2013 |
| Total Posts: 5546 |
|
| |
|
|
| 25 Mar 2015 10:29 PM |
needs a torso and a head with a joint named neck connecting them
⬡ |
|
|
| Report Abuse |
|
|
booing
|
  |
| Joined: 04 May 2009 |
| Total Posts: 6594 |
|
|
| 25 Mar 2015 10:30 PM |
| go reprot amanda Cause she cant script |
|
|
| Report Abuse |
|
|
|
| 25 Mar 2015 10:55 PM |
| Okay. How to make a neck with the torso? |
|
|
| Report Abuse |
|
|
MM233
|
  |
| Joined: 19 Jun 2008 |
| Total Posts: 925 |
|
|
| 25 Mar 2015 11:07 PM |
I'm guessing you're using humanoid.Died:connect( -- stuff ). You do need the torso, head, and neck for this. However, you COULD just change how you're going about it.
humanoid.Changed:connect(function(prop) if prop == "Health" and prop <= 0 then print("Oh look, a shiny coin.") -- Obviously, your code here end end)
|
|
|
| Report Abuse |
|
|