|
| 24 Mar 2014 02:21 AM |
How do I script a button that when you click on it, a frame pops up. Also How do I make a Script that closes a frame.
|
|
|
| Report Abuse |
|
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
|
| 24 Mar 2014 02:42 AM |
script.Parent.MouseButton1Click:connect(function() game.Players.LocalPlayer.PlayerGui.ScreenGuiNAME.NAMEOFFRAME.Visible = true end)
script.Parent.MouseButton1Click:connect(function() game.Players.LocalPlayer.PlayerGui.SCREENGUINAME.NAMEOFFRAME.Visible=false end) |
|
|
| Report Abuse |
|
|
|
| 24 Mar 2014 02:54 AM |
| Where do I put that script into and which kind of script should I type what you said in, Local Script? or Script? |
|
|
| Report Abuse |
|
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
| |
|
|
| 24 Mar 2014 03:01 AM |
| When I test it, The Frame keeps on showing up without me pressing the button, how do I make it so that, before you click on the button, The Frame isn't appearing |
|
|
| Report Abuse |
|
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
|
| 24 Mar 2014 03:06 AM |
| Set the visible property in the gui to false -.- |
|
|
| Report Abuse |
|
|
|
| 24 Mar 2014 03:18 AM |
| Thank you, I don't need anymore help now, Now I can make Basic GUIs |
|
|
| Report Abuse |
|
|