Close button closes all GUI's

script.Parent.MouseButton1Click:Connect(function()

script.Parent.Parent.Enabled = false

end)

is should work

As a local script or script for this?

script (30 char 30 char 30 char)

This is not the problem he had tho.
His script already works just fine, for simply making all of the “Guis” (as he calls them) invisible.

1 Like

Nope, doesn’t work, maybe the script wasn’t written correctly w/ the end?

Is it called “Guis?” I thought it was like that.

it is correct . It allways work . If it doesn’t work , then nothing . And don’t forget this should be a localScript !

A “Gui” is defined a ScreenGui, a BillboardGui etc.
The frames inside, are just called Frames.

It seems, I may have misunderstood, your problem?
Your script doesn’t even make everything invisible?

Wasn’t your original problem, that it closes more frames, than you want it to?

Still doesn’t work, it could be the formatting?

No, I want the message GUI to go invisible, why?

I don’t know then . It must work anyways .
Try to write this script by your hands (Do not paste it)

Can you be more specific with:

How can I make it so that the text button only closes one GUI?

I don’t quite understand your problem anymore.
What do you mean with one GUI?

Your script only makes one GUI close already.

Would you mind, sending the .rblx file?

Nope, it originally removed all my GUI’s.

Did that, it didn’t work, maybe you missed something?

Sorry, no, I don’t feel comfortable doing that.

But it closes all the GUI’s, including the ones in StarterGui.

Then it’s hard for us to help you.

@Scripted_Vortex I originally thought that was his problem, but he told me, no.

I can’t help you any further.

Sorry.

Yes I realized that as I was scrolling up the thread, that is why I took down the post.

Which gui’s do you want to be closed?