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

How do I fix simpleOpen & Close GUI?

Asked by 10 years ago

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

1 answer

Log in to vote
0
Answered by
istiyak 13
10 years ago

are those 2 scripts seperate from each other?

Ad

Answer this question