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

How do I fix this super simple 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 10 years ago

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...

0
Go to the place and see what I mean...There will be a big customize button colored gray Blueperm 15 — 10y
Ad

Answer this question