|
| 05 Oct 2013 02:39 PM |
for some reason, this script will not launch. no output. please help.
function die() local chil = script.Parent:Getchildren() for i = 1, #chil do if chil[i].Name == "Part" then chil[i].Anchored = false chil[i].CanColide = false wait(0.5) end end end game.Workspace.Barracade.Humanoid.Died:connect(die) |
|
|
| Report Abuse |
|
|
| |
|
gansest
|
  |
| Joined: 08 Apr 2010 |
| Total Posts: 609 |
|
|
| 05 Oct 2013 02:44 PM |
So that's what you want:
When you die, every part inside of script.Parent becomes unanchored and uncollidable. Right? |
|
|
| Report Abuse |
|
|
| |
|
gansest
|
  |
| Joined: 08 Apr 2010 |
| Total Posts: 609 |
|
|
| 05 Oct 2013 02:51 PM |
repeat wait() until workspace.AMDevelopment.Humanoid.Health == 0 --code |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 05 Oct 2013 03:16 PM |
Functions were made so that we don't have to use iterations every thirtieth of a second.
..then again, the .Died event is pretty frustrating to get to work. |
|
|
| Report Abuse |
|
|