I'm Making A Game, And I Made A Menu GUI. I Added An X Button, And I Don't Know The Script To Close It. Little Help Please..? This Is The Script I Tried From Some Other Post, But It Doesn't Work.
button = script.Parent
2 function onClicked()
3 if button.MouseButton1Click
4 then button.Visibile = false -- this only removes the button how do i get it to remove everything else
5 end
6 end
7 button.MouseButton1Click:connect(onClicked)
What Is The Script I Should Use??

9 comments
;-;
just tell the gui to delete from player gui after the x is pressed :/
just tell the gui to delete from player gui after the x is pressed :/
And... How Do I Do That?
How..
either do this: (whatever the fullname of the screengui is):Delete() after x is clicked. or tell it to move somewhere else like make it a member of lighting (lighting is a good landfill for things like models or guis that you want to load in at certain times)
:Destroy()
maybe because you spelt visible wrong
^ Lmao.