How do I fix this simple gui?
Alright,
This gui is suppposed to open a frame when u click it, which it does,
it also makes it self not visible and the close gui visible,
the close gui makes anything open inside the frame invisible when u click it and makes the frame it self invisible along with making itself invisible,making the open visible
You can test it here to see what I mean, the button is called customize
http://www.roblox.com/PBCord-place?id=154907463
Script for the open button
1 | play = game.Players.LocalPlayer.PlayerGui |
2 | script.Parent.MouseButton 1 Down:connect( function () |
3 | script.Parent.Parent.Choices.Visible = true |
4 | script.Parent.Parent.Main 2. Visible = true |
5 | script.Parent.Parent.Main.Visible = false |
Script for the close button
1 | mom = game.Players.LocalPlayer.PlayerGui |
3 | script.Parent.MouseButton 1 Down:connect( function () |
4 | mom.ScreenGui.IntroGui.Title.Cust.Choices.Visible = false |
5 | mom.ScreenGui.IntroGui.Title.Cust.Main 2. Visible = false |
6 | mom.ScreenGui.IntroGui.Title.Cust.Main.Visible = true |
7 | script.Parent.Parent.Parent.Parent.Parent.Stock.Frame.Visible = false |
Can someone tell my why it wont work