Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Gui not working gets glitched how to fix it? [closed]

Asked by 10 years ago

Please do not repost your question after it has been closed.

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

Marked as Duplicate by AmericanStripes

This question has been asked before, and already has an answer. If those answers do not fully address your question, then please ask a new question here.

Why was this question closed?