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 Script Not Working

Previous Thread :: Next Thread 
WafflezExtreme is not online. WafflezExtreme
Joined: 02 Mar 2013
Total Posts: 1162
10 Jun 2014 06:29 PM
script.Parent.MouseButton1Click:connect(function()
mainShop = script.Parent.Parent.MainShop
if mainShop.Visible == false then
mainShop.Visible = true
script.Parent.Text = "Back"
else
mainShop.Visible = false
script.Parent.Text = "Shop"
end
end)



There is no output and all it does when I click the gui is make the gui disapear
Report Abuse
WafflezExtreme is not online. WafflezExtreme
Joined: 02 Mar 2013
Total Posts: 1162
10 Jun 2014 06:48 PM
Bump
Report Abuse
samy22 is not online. samy22
Joined: 28 Sep 2008
Total Posts: 2181
10 Jun 2014 06:49 PM
looks fine and, of course it will disappear, that's what you made it do.
Report Abuse
WafflezExtreme is not online. WafflezExtreme
Joined: 02 Mar 2013
Total Posts: 1162
10 Jun 2014 06:59 PM
aww found my mistake


script.Parent.MouseButton1Click:connect(function()
mainShop = script.Parent.Parent.Frame
if mainShop.Visible == false then
mainShop.Visible = true
script.Parent.Text = "Back"
else
mainShop.Visible = false
script.Parent.Text = "Shop"
end
end)

I need it to be the name of the shop "Frame" not the open button"MainShop".
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