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 Problem

Previous Thread :: Next Thread 
22ron is not online. 22ron
Joined: 17 Jun 2012
Total Posts: 279
24 Apr 2014 06:33 PM
Hear is the script for the Menu gui:

button = script.Parent
window = script.Parent.Parent.Parent.Parent
lighting = game.Lighting

function onClicked(GUI)
window.Parent = lighting
end
script.Parent.MouseButton1Click:connect(onClicked)
--------------------------------------------------------------------------------
that script is found in lightening, now to open that gui up in the first place I use this script in another gui textbutton:
--------------------------------------------------------------------------------
button = script.Parent
menu = game.Lighting.IntroMessage
gui = game.StarterGui

function onClick(Help)
menu.Parent = gui
wait(0.5)
end

script.Parent.MouseButton1Click:connect(onClick)
--------------------------------------------------------------------------------
It works but you hafto reset to make the first gui show up.

can someone tell me why...
Report Abuse
iOffensive is not online. iOffensive
Joined: 13 Jun 2013
Total Posts: 416
24 Apr 2014 06:35 PM
I think it's because you're sending it to StarterGui.

Set gui equal to the PlayerGui
Report Abuse
22ron is not online. 22ron
Joined: 17 Jun 2012
Total Posts: 279
24 Apr 2014 06:40 PM
oops I'm dumb thak's man!
Report Abuse
22ron is not online. 22ron
Joined: 17 Jun 2012
Total Posts: 279
24 Apr 2014 06:45 PM
How do you send a gui to the players gui without getting a nul?
Report Abuse
LuminaDeVis is not online. LuminaDeVis
Joined: 14 Apr 2013
Total Posts: 34
24 Apr 2014 07:06 PM
game.PlayerGui instead of game.StarterGui should work.
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