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

Can anyone help me on this simple GUI? [Solved]

Asked by 10 years ago

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

0
Please check the ouput window, and comment what the errors are. (Errors' in red text) systematicaddict 295 — 10y
0
18:30:07.331 - Stock is not a valid member of ScreenGui 18:30:07.332 - Script 'Players.Player1.PlayerGui.ScreenGui.IntroGui.Title.Cust.Mai', Line 7 18:30:07.333 - Stack End 18:30:07.335 - Disconnected event because of exception Blueperm 15 — 10y

Answer this question