generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Script breaks for some reason...

Previous Thread :: Next Thread 
Bergan is not online. 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 is not online. Bergan
Joined: 23 Nov 2007
Total Posts: 4942
19 Aug 2012 12:28 PM
Bump.
Report Abuse
Bergan is not online. Bergan
Joined: 23 Nov 2007
Total Posts: 4942
19 Aug 2012 12:34 PM
Can somebody please help me?
Report Abuse
Bergan is not online. 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 is not online. 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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image