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: scripting help (Gui)

Previous Thread :: Next Thread 
epiccruelgun is not online. epiccruelgun
Joined: 24 Dec 2011
Total Posts: 381
04 Nov 2012 03:01 PM
so I made this script where my button is in the ScreenGui but not in the frame because the button would disappeer if it was in the frame. what I want to happen is when you click the close button, the fram is not visible. here is my script (it doesn't work and there isn't any output):

function onClicked()
if game.StarterGui.ScreenGui.Frame.Visible==true then
game.StarterGui.ScreenGui.Frame.Visible=false
elseif game.StarterGui.ScreenGui.Frame.Visible==false then
game.StarterGui.ScreenGui.Frame.Visible=true
end
end
script.Parent.MouseButton1Click:connect(onClicked)
Report Abuse
thecaptain97 is not online. thecaptain97
Joined: 17 Jun 2010
Total Posts: 4987
04 Nov 2012 03:08 PM
Because You're doing it in the StarterGui, not the Player's Gui[ PlayerGui]
Report Abuse
epiccruelgun is not online. epiccruelgun
Joined: 24 Dec 2011
Total Posts: 381
04 Nov 2012 03:10 PM
so what i do is put the screen gui in players?
Report Abuse
thecaptain97 is not online. thecaptain97
Joined: 17 Jun 2010
Total Posts: 4987
04 Nov 2012 03:11 PM
instead of "game.StarterGui"

put "script.Parent.Parent" and try it
Report Abuse
epiccruelgun is not online. epiccruelgun
Joined: 24 Dec 2011
Total Posts: 381
04 Nov 2012 03:18 PM
but that would be identifying the ScreenGui and the ScreenGui dosen't have a visible property. here, in startergui i have a screengui in that i have a frame and close button. I need to get the frame able to go visible when it is invisible and invisible when it is visible just by clicking the button.
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