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: Gui Scripting Help

Previous Thread :: Next Thread 
epiccruelgun is not online. epiccruelgun
Joined: 24 Dec 2011
Total Posts: 381
05 Nov 2012 04:15 PM
so I have in The StarterGui a ScreenGui and in the screengui there is, Frame,Frame1, and close/openbutton. So i tested my place and my close/open button works when it is on Frame but when I click my next button, and i try to close and open Frame1 nothing happens. here is my script (help?):

function onClicked()
script.Parent.Parent["Frame"].Visible = not script.Parent.Parent["Frame"].Visible
end

script.Parent.MouseButton1Click:connect(onClicked)
Report Abuse
TheAwesomenessDude is not online. TheAwesomenessDude
Joined: 17 Jul 2011
Total Posts: 11602
05 Nov 2012 04:16 PM
If your parenting is correct, the only error I can find is that no "." is needed after you say ["Frame"]
Report Abuse
epiccruelgun is not online. epiccruelgun
Joined: 24 Dec 2011
Total Posts: 381
05 Nov 2012 04:18 PM
actully i think i miss worded it. this works for Frame but i need it to also work for Frame1.
Report Abuse
epiccruelgun is not online. epiccruelgun
Joined: 24 Dec 2011
Total Posts: 381
05 Nov 2012 04:30 PM
bump
Report Abuse
ethanchuffman68 is not online. ethanchuffman68
Joined: 27 May 2011
Total Posts: 183
05 Nov 2012 04:59 PM
function onClicked()
if script.Parent.Parent["Frame"].Visible == true then
script.Parent.Parent["Frame"].Visible = false
end
if script.Parent.Parent["Frame"].Visible == false then
script.Parent.Parent["Frame"].Visible = true
end
end

script.Parent.MouseButton1Down:connect(onClicked)
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