Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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)

2 comments

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.

0

Could you friend me and i will invite you so you can fix it is kind not working for me sir

1 answer

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.