Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

how would i make a button to remove my welcome Gui?

Asked by 10 years ago

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

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. adark 5487 — 10y

1 answer

Log in to vote
0
Answered by
adark 5487 Badge of Merit Moderation Voter Community Moderator
10 years ago

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.

0
ok sorry about all the questions, it just that i am eager to learn all this namelessassasin 30 — 10y
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. :) adark 5487 — 10y
0
thanks for helping me write my first script, i actually made up myself and not off of roblox wiki or youtube namelessassasin 30 — 10y
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. adark 5487 — 10y
Ad

Answer this question