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
 

Re: Only 1 frame open

Previous Thread :: Next Thread 
Olama5 is not online. Olama5
Joined: 31 Jan 2010
Total Posts: 2827
20 Sep 2013 05:30 PM
I am trying to make it where if you open one frame and another frame is open, it will close that frame.

Here is the Script:

Frame1 = game.StarterGui.Menu.Load
Frame2 = game.StarterGui.Menu.New
Frame = game.StarterGui.Menu.Options
script.Parent.MouseButton1Click:connect(function()
if Frame.Visible = true and
Frame1.Visible = true then
Frame1.Visible = false
elseif Frame.Visible = true and
Frame2.Visible = true then
Frame2.Visible = false
end)
Report Abuse
Olama5 is not online. Olama5
Joined: 31 Jan 2010
Total Posts: 2827
20 Sep 2013 05:40 PM
Bump
Please Help!
Report Abuse
funnymouse7 is not online. funnymouse7
Joined: 17 Mar 2011
Total Posts: 1741
20 Sep 2013 05:47 PM
Frame1 = game.StarterGui.Menu.Load
Frame2 = game.StarterGui.Menu.New
Frame = game.StarterGui.Menu.Options
script.Parent.MouseButton1Click:connect(function()
if Frame1.Visible == true and
Frame2.Visible = true then
Frame1.Visible = false
elseif Frame1.Visible == false and
Frame1.Visible = true then
Frame2.Visible = false
end
end)



you forgot an end and when you ask an if statement you dont put one = you put 2 ==
Report Abuse
Olama5 is not online. Olama5
Joined: 31 Jan 2010
Total Posts: 2827
20 Sep 2013 05:52 PM
It is...
not working!
Report Abuse
Olama5 is not online. Olama5
Joined: 31 Jan 2010
Total Posts: 2827
20 Sep 2013 05:55 PM
Output:
then expected near '='
Report Abuse
wazap is not online. wazap
Joined: 29 Jun 2007
Total Posts: 23234
20 Sep 2013 05:57 PM
Very inefficient...

Frame1 = game.StarterGui.Menu.Load
Frame2 = game.StarterGui.Menu.New
Frame = game.StarterGui.Menu.Options
script.Parent.MouseButton1Click:connect(function()
if Frame.Visible then
Frame1.Visible = not Frame.Visible
Frame2.Visible = not Frame.Visible
end

end)
Report Abuse
Olama5 is not online. Olama5
Joined: 31 Jan 2010
Total Posts: 2827
20 Sep 2013 06:01 PM
STILL DONT WORK!!!
Report Abuse
evolvedpikachu is not online. evolvedpikachu
Joined: 18 Aug 2010
Total Posts: 10696
20 Sep 2013 06:02 PM
@waz

That wouldn't work.
Report Abuse
Olama5 is not online. Olama5
Joined: 31 Jan 2010
Total Posts: 2827
20 Sep 2013 06:04 PM
I believe he thought about Using an Open/Close script and making it where only 1 frame can be open!
Report Abuse
wazap is not online. wazap
Joined: 29 Jun 2007
Total Posts: 23234
20 Sep 2013 06:04 PM
Meant Frame1.Visible = false and Frame2.Visible = false XD

I edited out something and I left the wrong things in there. My bad x_x

But if Frame.Visible then would work
Report Abuse
funnymouse7 is not online. funnymouse7
Joined: 17 Mar 2011
Total Posts: 1741
20 Sep 2013 06:05 PM
Frame1 = game.StarterGui.Menu.Load
Frame2 = game.StarterGui.Menu.New
Frame = game.StarterGui.Menu.Options
script.Parent.MouseButton1Click:connect(function()
if Frame1.Visible == true then
Frame1.Visible = false
elseif Frame1.Visible == false then
Frame2.Visible = false
end
end)



try that
Report Abuse
Olama5 is not online. Olama5
Joined: 31 Jan 2010
Total Posts: 2827
20 Sep 2013 06:07 PM
So where do I put it?
Report Abuse
funnymouse7 is not online. funnymouse7
Joined: 17 Mar 2011
Total Posts: 1741
20 Sep 2013 06:07 PM
or try this

Frame1 = game.StarterGui.Menu.Load
Frame2 = game.StarterGui.Menu.New
Frame = game.StarterGui.Menu.Options
script.Parent.MouseButton1Click:connect(function()
if Frame1.Visible == true and Frame2.Visible == false then
Frame1.Visible = false
Frame2.Visible = true
elseif Frame1.Visible == false and Frame2.Visible == true then
Frame2.Visible = false
Frame1.Visible = true
end
end)


try that
Report Abuse
wazap is not online. wazap
Joined: 29 Jun 2007
Total Posts: 23234
20 Sep 2013 06:10 PM
I get the problem... And btw @evolved it would work


Starting at the function()

Frame1.Visible = not Frame2.Visible

end)

done.
Report Abuse
Olama5 is not online. Olama5
Joined: 31 Jan 2010
Total Posts: 2827
20 Sep 2013 06:14 PM
It's Not working!
Is this hard for you guys?
Report Abuse
CloneTrooper1019 is not online. CloneTrooper1019
Joined: 19 Jan 2009
Total Posts: 6227
20 Sep 2013 06:16 PM
@Olama
How about you show us the model so we actually know the hierarchy of the script.
You are clearly explaining something wrong to us.
Report Abuse
Olama5 is not online. Olama5
Joined: 31 Jan 2010
Total Posts: 2827
20 Sep 2013 06:18 PM
http://www.roblox.com/Galavin-Menu-item?id=130204666
This is the GUI!
Report Abuse
08C is not online. 08C
Joined: 26 Jan 2013
Total Posts: 847
20 Sep 2013 06:27 PM
[ Content Deleted ]
Report Abuse
expressmyself is not online. expressmyself
Joined: 19 Apr 2011
Total Posts: 1768
20 Sep 2013 06:29 PM
Isn't there a test mode in Studio... You can click the button all the scripts will run unless you use an event of fire the function on your own.
Report Abuse
Olama5 is not online. Olama5
Joined: 31 Jan 2010
Total Posts: 2827
20 Sep 2013 06:31 PM
I don't understand you correctly,
but if what you said is:

I am trying to make it where if 1 frame is open and you open another, then that other frame will be invisible!
Like:
Frame1 is Opened
Frame2 Opened
Frame1 would become invisible

bets way I can explain it
Report Abuse
CloneTrooper1019 is not online. CloneTrooper1019
Joined: 19 Jan 2009
Total Posts: 6227
20 Sep 2013 06:33 PM
I noticed that afterwards. I fixed it.
http://www.roblox.com/For-olama5-item?id=130206696
Report Abuse
Olama5 is not online. Olama5
Joined: 31 Jan 2010
Total Posts: 2827
20 Sep 2013 06:37 PM
Thank you CloneTrooper1019!
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