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
 

Small Gui Problem

Previous Thread :: Next Thread 
SilverArgentum is not online. SilverArgentum
Joined: 01 Nov 2011
Total Posts: 1162
09 Jun 2014 03:13 PM
Okay, so in my previous post, I manually typed in the gui script, and ended up accidentally typing a typo. So I'll just copy and paste the gui script in (at least a section of it)

Heiarchy: ScreenGUI > Frame > TextButton > Script
(note that the ScreenGUI contains a second frame named Frame2)


function clicked()
script.Parent.Parent.Parent.Frame2.Visible = false
end

script.Parent.MouseButton1Clicked:connect(clicked)
Report Abuse
SilverArgentum is not online. SilverArgentum
Joined: 01 Nov 2011
Total Posts: 1162
09 Jun 2014 03:36 PM
poke
Report Abuse
xXLiLxJXx is not online. xXLiLxJXx
Joined: 15 Mar 2012
Total Posts: 687
09 Jun 2014 04:15 PM
stab
Report Abuse
xXLiLxJXx is not online. xXLiLxJXx
Joined: 15 Mar 2012
Total Posts: 687
09 Jun 2014 04:16 PM
I usally use this..



function clicked()
script.Parent.Parent.Parent.Frame2.Visible = false
end

script.Parent.MouseButton1Down:connect(clicked) --Not MouseButton1Clicked
Report Abuse
LegendaryAccount is not online. LegendaryAccount
Joined: 02 Jun 2010
Total Posts: 13193
09 Jun 2014 04:17 PM
function clicked()
script.Parent.Parent.Visible = false
end

that should work I think

unless its

script.Parent.Parent.Frame2.Visible = false
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