So i i'm making a mini game so i want it that when you click the PLAY Gui the message on the top which is a GUI opens.
✓ ANSWER ACCEPTED
How do i make it so a gui opens when someone clicks a gui?
1 answer
✓ Accepted answer
Alright so you first have to define the gui.You didnt give to much information about it but here's how to do it.
local gui = script.Parent.Parent.Parent("Your name") --type parent til you reach the playergui then the name of the gui.
function onClicked()
gui.Enabled = true
script.Parent.Visible = false --is this what you want?
end
script.Parent.MouseButton1Click:Connect(onClicked) -- also put the script inside the button.
I typed it with parent because it's gonna be parented to "PlayerGui" when you start the game. Say if you
This discussion is preserved as it was. New answers, comments, and votes are closed.
