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 |
|
|
|
| 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
|
  |
| Joined: 17 Jun 2012 |
| Total Posts: 279 |
|
| |
|
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 |
|
|
|
| 24 Apr 2014 07:06 PM |
| game.PlayerGui instead of game.StarterGui should work. |
|
|
| Report Abuse |
|
|