ferano
|
  |
| Joined: 23 Nov 2008 |
| Total Posts: 5094 |
|
|
| 31 Jan 2016 04:34 PM |
| So a piece in the wall needs to be killable, so it would either fall apart or just disappear. I tried going about this by making the piece a humanoid with health, unachored, with a head and torso, however it would not stay alive for some reason, how do I fix this? |
|
|
| Report Abuse |
|
|
ferano
|
  |
| Joined: 23 Nov 2008 |
| Total Posts: 5094 |
|
| |
|
TheOsiris
|
  |
| Joined: 30 May 2010 |
| Total Posts: 4534 |
|
|
| 31 Jan 2016 05:04 PM |
Just use a regular part that's anchored and change the vector value from an ontouch function to set it to fall on you that will automatically deduct your health
|
|
|
| Report Abuse |
|
|
ferano
|
  |
| Joined: 23 Nov 2008 |
| Total Posts: 5094 |
|
|
| 31 Jan 2016 05:05 PM |
| Sorry if my explanation is lacking, but the gate/wall piece is supposed to be killed, for example if you stab it x amount of times and do x amount of damage it will fall apart... |
|
|
| Report Abuse |
|
|
Tigeon
|
  |
| Joined: 24 May 2013 |
| Total Posts: 4222 |
|
|
| 31 Jan 2016 05:12 PM |
Make the 1 wall into like lets say 50 different parts, don't anchore them but weld them. Explosions iwll then blow the wall to peices
#code print('bill') |
|
|
| Report Abuse |
|
|
ferano
|
  |
| Joined: 23 Nov 2008 |
| Total Posts: 5094 |
|
|
| 31 Jan 2016 05:16 PM |
| This game sadly will feature no explosions, it must be done by sword for example |
|
|
| Report Abuse |
|
|
|
| 31 Jan 2016 06:42 PM |
I suck at scripting so this is probaly wrong but...
Make a humanoid part where when the health is zero, make a function transparency 0 and cancollide for x time? |
|
|
| Report Abuse |
|
|
ferano
|
  |
| Joined: 23 Nov 2008 |
| Total Posts: 5094 |
|
|
| 31 Jan 2016 06:43 PM |
| That is a good idea for making it disappear, however I am having difficulty even getting the humanoid to have health, for example, when I test it, it immediately has no health. |
|
|
| Report Abuse |
|
|
AIekz
|
  |
| Joined: 14 Sep 2013 |
| Total Posts: 108 |
|
|
| 31 Jan 2016 06:44 PM |
OnTouch event registers when a part is collided with, and you can kill a player using player:BreakJoints
you can figure out the rest |
|
|
| Report Abuse |
|
|
ferano
|
  |
| Joined: 23 Nov 2008 |
| Total Posts: 5094 |
|
|
| 31 Jan 2016 06:46 PM |
| I managed to get the humanoid to work. |
|
|
| Report Abuse |
|
|