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 button to remove my welcome Gui?

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

1 comment

0

Please refrain from creating multiple questions for the same issue. You can edit your original question with updates. Only make new questions for unrelated inqueries.

1 answer

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.

4 comments

0

ok sorry about all the questions, it just that i am eager to learn all this

0

The questions themselves aren't the problem, just that you are spamming the Questions page a bit. Just remember to edit your questiosn in the future. :)

0

thanks for helping me write my first script, i actually made up myself and not off of roblox wiki or youtube

0

Don't ignore any source of knowledge, friend. It's not lazy or bad to use Free Model scripts, or wiki scripts, or hell even YouTube tutorial scripts, especially while you are still learning Lua.

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