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
 

GUI Visible/Invisible

Previous Thread :: Next Thread 
Lightsmasher is not online. Lightsmasher
Joined: 21 Jul 2008
Total Posts: 246
05 Sep 2010 02:53 AM
This script is very simplistic and I have already checked thoroughly that things are correctly placed. The parents are correct and everything is located. I get no output. J1 and J2 are TextLabels inside a screengui. The script is inside a button inside that screengui. Both J1 and J2 start off invisible.

function onClicked()
if script.Parent.Parent.J1.Visible == false then
script.Parent.Parent.J1.Visible = true
script.Parent.Parent.J2.Visible = true
else
script.Parent.Parent.J1.Visible = false
script.Parent.Parent.J2.Visible = false
end
end

script.Parent.MouseButton1Click:Connect(onClicked)

Any help would be greatly appreciated.
Report Abuse
Lightsmasher is not online. Lightsmasher
Joined: 21 Jul 2008
Total Posts: 246
05 Sep 2010 03:14 AM
Figured it out myself. The last line was incorrect, as Connect does not require capitalization.
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