Alright, It's a text button gui, The text in the gui is called "Customize" When you click this customize button a frame opens along with shop items and weapon upgrades as seen as "Stock" and other weapon things, When the customize gui is clicked it also opens a Close gui that appears right over the customize one and hides the customize one, When u click the close one it glitches and wont close if youve already clicked open,close,open then the 2nd time u click close it wont work 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