Bergan
|
  |
| Joined: 23 Nov 2007 |
| Total Posts: 4942 |
|
|
| 19 Aug 2012 12:18 PM |
while true do wait(1) local A = script.Parent.Parent:FindFirstChild("Noob Ace A") local B = script.Parent.Parent:FindFirstChild("Noob Ace B") local C = script.Parent.Parent:FindFirstChild("Noob Ace C") local D = script.Parent.Parent:FindFirstChild("Noob Ace D") local E = script.Parent.Parent:FindFirstChild("Noob Ace E") if A.Monster.Health == 0 and B.Monster.Health == 0 and C.Monster.Health == 0 and D.Monster.Health == 0 and E.Monster.Health == 0 then script.Parent.Transparency = 1 script.Parent.CanCollide = false end end
Basically a wall dissapears after 5 enemies are defeated.
Output says that there is no "E", but there is one! Is there a limit to how many "ifs" there can be at once? |
|
|
| Report Abuse |
|
|
Bergan
|
  |
| Joined: 23 Nov 2007 |
| Total Posts: 4942 |
|
| |
|
Bergan
|
  |
| Joined: 23 Nov 2007 |
| Total Posts: 4942 |
|
|
| 19 Aug 2012 12:34 PM |
| Can somebody please help me? |
|
|
| Report Abuse |
|
|
Bergan
|
  |
| Joined: 23 Nov 2007 |
| Total Posts: 4942 |
|
|
| 19 Aug 2012 12:41 PM |
| Nevermind, I see that nobody wants to help me. |
|
|
| Report Abuse |
|
|
Beta2
|
  |
| Joined: 11 Apr 2008 |
| Total Posts: 1038 |
|
|
| 19 Aug 2012 12:53 PM |
If the output says E is nil, then it's not there.
Are you sure it's in the right group? |
|
|
| Report Abuse |
|
|
Bergan
|
  |
| Joined: 23 Nov 2007 |
| Total Posts: 4942 |
|
|
| 19 Aug 2012 07:41 PM |
| Yes. All were in the group with the brick. I tried renaming the 5th Noob Ace, yet it was still nil. It was identical the other 4, but for a weird reason it wasn't counted. By now I have replaced it with a higher rank enemy, but any help could still be useful. |
|
|
| Report Abuse |
|
|