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
play = game.Players.LocalPlayer.PlayerGui script.Parent.MouseButton1Down:connect(function() script.Parent.Parent.Choices.Visible = true script.Parent.Parent.Main2.Visible = true script.Parent.Parent.Main.Visible = false end)
Script for the close button
mom = game.Players.LocalPlayer.PlayerGui script.Parent.MouseButton1Down:connect(function() mom.ScreenGui.IntroGui.Title.Cust.Choices.Visible = false--Disables main things mom.ScreenGui.IntroGui.Title.Cust.Main2.Visible = false mom.ScreenGui.IntroGui.Title.Cust.Main.Visible = true --Stops here script.Parent.Parent.Parent.Parent.Parent.Stock.Frame.Visible = false--Starts small end)
Can someone tell my why it wont work
I can kinda grasp this, but you'll have to elaborate more, with better wording.
The scripts are fine in terms of syntax and function, but it's structured oddly...