|
| 09 Sep 2012 04:01 PM |
Frame1 = game.Players.LocalPlayer.PlayerGui.RPGShop.Frame1 Frame2 = game.Players.LocalPlayer.PlayerGui.RPGShop.Frame2 MFrame1 = Frame2.MFrame1 MFrame2 = Frame2.MFrame2 MFrame3 = Frame2.MFrame3 MFrame4 = Frame2.MFrame4 MFrame5 = Frame2.MFrame5 MFrame6 = Frame2.MFrame6 MFrame7 = Frame2.MFrame7 MFrame8 = Frame2.MFrame8 MFrame9 = Frame2.MFrame9
BronzeStxt = game.Players.LocalPlayer.PlayerGui.RPGShop.Frame2.MFrame1.BronzeStxt function onClick() game.Players.LocalPlayer.PlayerGui.RPGShop.Close.Visible = true game.Players.LocalPlayer.PlayerGui.RPGShop.Close.Active = true script.Parent.Visible = false script.Parent.Active = false Frame1.Visible = true Frame2.Visible = true MFrame1.Visible = true MFrame1.Active = true
MFrame2.Visible = true MFrame2.Active = true
MFrame3.Visible = true MFrame3.Active = true
MFrame4.Visible = true MFrame4.Active = true
MFrame5.Visible = true MFrame5.Active = true
MFrame6.Visible = true MFrame6.Active = true
MFrame7.Visible = true MFrame7.Active = true
MFrame8.Visible = true MFrame8.Active = true
MFrame9.Visible = true MFrame9.Active = true game.Players.LocalPlayer.PlayerGui.RPGShop.Frame2.Upgrades.Active = true game.Players.LocalPlayer.PlayerGui.RPGSop.Frame2.Upgrades.Visible = true end script.Parent.MouseButton1Down:connect(onClick) ----
You can only open then close it once, and then it wouldn't work.
Help?
If you need the Closing script, say so in comment area. |
|
|
| Report Abuse |
|
|
C0D3Y
|
  |
| Joined: 24 Jul 2010 |
| Total Posts: 1692 |
|
| |
|
|
| 09 Sep 2012 04:06 PM |
Frame1 = game.Players.LocalPlayer.PlayerGui.RPGShop.Frame1 Frame2 = game.Players.LocalPlayer.PlayerGui.RPGShop.Frame2 MFrame1 = Frame2.MFrame1 MFrame2 = Frame2.MFrame2 MFrame3 = Frame2.MFrame3 MFrame4 = Frame2.MFrame4 MFrame5 = Frame2.MFrame5 MFrame6 = Frame2.MFrame6 MFrame7 = Frame2.MFrame7 MFrame8 = Frame2.MFrame8 MFrame9 = Frame2.MFrame9
BronzeStxt = game.Players.LocalPlayer.PlayerGui.RPGShop.Frame2.MFrame1.BronzeStxt function onClick() game.Players.LocalPlayer.PlayerGui.RPGShop.Open.Visible = true game.Players.LocalPlayer.PlayerGui.RPGShop.Open.Active = true script.Parent.Visible = false script.Parent.Active = false Frame1.Visible = false Frame2.Visible = false MFrame1.Visible = false MFrame1.Active = false
MFrame2.Visible = false MFrame2.Active = false
MFrame3.Visible = false MFrame3.Active = false
MFrame4.Visible = false MFrame4.Active = false
MFrame5.Visible = false MFrame5.Active = false
MFrame6.Visible = false MFrame6.Active = false
MFrame7.Visible = false MFrame7.Active = false
MFrame8.Visible = false MFrame8.Active = false
MFrame9.Visible = false MFrame9.Active = false game.Players.LocalPlayer.PlayerGui.RPGShop.Frame2.Upgrades.Active = false game.Players.LocalPlayer.PlayerGui.RPGSop.Frame2.Upgrades.Visible = false end script.Parent.MouseButton1Down:connect(onClick) -------
If you want to see it for yourself go here:
http://www.roblox.com/User.aspx?submenu=true |
|
|
| Report Abuse |
|
|
|
| 09 Sep 2012 04:06 PM |
for a open/close button use
local gui = script.Parent.Parent.test -- what frame/box do you want to open/close? script.Parent.MouseButton1Click(function () gui = not gui
end) |
|
|
| Report Abuse |
|
|
|
| 09 Sep 2012 04:18 PM |
| @notsopwnedg: Umm.. That's very confusing.. Was that meant to be posted on here? |
|
|
| Report Abuse |
|
|
|
| 09 Sep 2012 04:20 PM |
Remove all the ".Active" parts.
------------------------- ~thedestroyer115, nice and helpful posts- sometimes~ |
|
|
| Report Abuse |
|
|
| |
|
|
| 09 Sep 2012 04:21 PM |
| Instead of doing all of that, just make all the other stuff inside of one big frame and make the frame visible. Much less code. |
|
|
| Report Abuse |
|
|
|
| 09 Sep 2012 04:23 PM |
| @Advorus: So more codes will break the script?? |
|
|
| Report Abuse |
|
|
|
| 09 Sep 2012 04:26 PM |
Big frame = Size 1,1
visible off = all off |
|
|
| Report Abuse |
|
|
|
| 09 Sep 2012 04:28 PM |
| No, it's just less code to dissect. Most of it is unnecesarry. |
|
|
| Report Abuse |
|
|
|
| 09 Sep 2012 04:42 PM |
Did you do what I said?
------------------------- ~thedestroyer115, nice and helpful posts- sometimes~ |
|
|
| Report Abuse |
|
|
|
| 09 Sep 2012 04:45 PM |
| @Thedestroyer115: You would still be able to press the button :| |
|
|
| Report Abuse |
|
|
|
| 09 Sep 2012 04:47 PM |
No, when it's invisible it cannot be clicked.
------------------------- ~thedestroyer115, nice and helpful posts- sometimes~ |
|
|
| Report Abuse |
|
|