so i made a welcome GUi and i have a button to make it all disappear but i am having trouble with the script
button = script.Parent function onClicked() if button.MouseButton1Click then button.Visibility = false -- this only removes the button how do i get it to remove everything else end end button.MouseButton1Click:connect(onClicked)
is there a better way to remove the GUI's and this script doesn't work i don't know why basically all my text labels and etc is withing screengui which is in the startergui..i am stuck on trying to get the welcome page to diappear
First, the property you are looking for is Visible
, not Visitbility
.
The Visible
property makes its GUI and its GUI's descendants invisible. To get the entire Welcome GUI to become invisible, you have to give them a shared Parent.
To do this, start by creating a Frame. Leave the Frame's Position
alone, but set its Size
to {(1, 0),(1,0)}. Next, sets its BackgroundTransparency
to 1.
Put all of the contents of your Welcome GUI within this Frame, and change your script to set the Frame's Visible
property to false
.