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

How to have another GUI open as soon as another is closed?

This is the code I have right now,

function onClicked()
	script.Parent.Parent.Visible = false
end
script.Parent.MouseButton1Click:connect(onClicked)

That is the code that will make the current GUI turn invisible when you press down on the "Play" option anyway , my question is would I have to add a "then" into the script to have the other GUI who is also a Child of the Frame to somehow turn visible when you press the "Play" textbutton?

1 comment

0

Use the .Changed event to detect when a gui is turning invisible (Visible = false) to start a function that reveals another.

1 answer

✓ Accepted answer

Simplest way I can think is you can just make the other one's visibility equal to true in the same function, right after the other's visibility is set to false, being as the function only activates when script.Parent is clicked.

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