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

How would i make a pop up GUI? only the first command worked not the menu popping up

Asked by 5 years ago

only the first command worked not the menu popping up

script.Parent.MouseButton1Click:connect(function()
    script.Parent.Parent.Visible = false
    game.StarterGui.MenuFolders.MainMenu.ScreenGui.Frame.Background.Visible = true
end)
0
I didn't know 'visible' was a property. Usually I would find the path to it ie script.Parent or something then .enabled=true to.make it pop up. Alternatively changing it from true to false would work with buttons and click detectors. However, I think that enable is only a property in a ScreenGui, so be careful with that. Primrose_Studio 53 — 5y
0
Could you friend me and i will invite you so you can fix it is kind not working for me sir legendarycoos11 1 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

We need a little more information, otherwise we can't help, i dont tthink a gui will show up if it's in a folder, if your looking for a pop-up code, this may help:

script.Parent.MouseButton1Click:connect(function()
       script.Parent.Parent.Visible = false 
    wait(5)
       script.Parent.Parent.Visible = true
end)

Make sure this is a local script inside a TextButton or ImageButton. You will need to change line 2 and 4 of course to fit your UI Area.

Ad

Answer this question