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 » Scripters
Home Search
 

Re: Checking for 3 items, not working?

Previous Thread :: Next Thread 
Barbariancreep is not online. Barbariancreep
Joined: 23 Nov 2012
Total Posts: 1096
02 Jun 2015 01:17 AM
this is inside a frame, i tried normal script, and local.
its not making the frame invisible: THERES ONLY THOSE 3 ITEMS

local object = script.Parent;

while true do
if #object:GetChildren() == 3 and object:FindFirstChild("Background") and object:FindFirstChild("Detector") and object:FindFirstChild("Script") then -- This script
object.Visible = true
else
object.Visible = false
end
wait()
end

Report Abuse
cody123454321 is not online. cody123454321
Joined: 21 Nov 2009
Total Posts: 5408
02 Jun 2015 02:29 AM
Do individual checks and use prints.
You probably mis-cased one of the strings you deliberately create every wait()...

Report Abuse
Barbariancreep is not online. Barbariancreep
Joined: 23 Nov 2012
Total Posts: 1096
02 Jun 2015 12:55 PM
b1

I don't understand... explain please
Report Abuse
Pkamara is not online. Pkamara
Joined: 25 Apr 2013
Total Posts: 95
02 Jun 2015 01:39 PM
First of all that code is inefficient but anyway,

local Object = script.Parent;

while wait() do
if #Object:GetChildren() == 3 and Object:FindFirstChild("Background") and Object:FindFirstChild("Detector") and Object:FindFirstChild("Localscript") then
Object.Visible = true;
else
Object.Visible = false;
end;

~ Mathematical Dessert
Report Abuse
Barbariancreep is not online. Barbariancreep
Joined: 23 Nov 2012
Total Posts: 1096
02 Jun 2015 01:53 PM
inefficient? Then how do i make it efficient?
Report Abuse
Barbariancreep is not online. Barbariancreep
Joined: 23 Nov 2012
Total Posts: 1096
02 Jun 2015 01:58 PM
b2

ok my new script:

local Object = script.Parent;

while true do
if #Object:GetChildren() == 3 and Object:FindFirstChild("Background") and Object:FindFirstChild("Detector") and Object:FindFirstChild("Localscript") then
Object.Visible = false;
print("hi1")
else
Object.Visible = true;
print("hi2")
end
wait()
end;

>>hi2
>>hi2
>>hi2
>>hi2
>>hi2
>>hi2
>>hi2
>>hi2 (etc.)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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