Please help me solve this

So I’ve been making these gui open thingies and the close button on the first one works fine but the close button on the second one which is exactly the same doesn’t work for some reason.

As you can see the first close button works but the second one doesn’t.

This is the working close button script.

This is the non-working script.

1 Like

Are their any errors?

My only guess could be due to the parents not being correct.
For example:

script.Parent.Parent.Visible = false

I’m assuming it’s not the correct frame it’s getting.

PC Simulator - Roblox Studio 20_12_2021 6_27_17 PM

This is the error

Yeah, so my assumption was correct. Remove one .Parent

script.Parent.Visible = false

ScreenGui Doesn’t have property Visible, I think it should be “Enabled” if you’re making a script for the ScreenGui.
Or, Make the script that changes the frame’s Visible property.

1 Like

It is enabled not visible. And all that taking away a parent did was make the close button disappear

Bruh it randomly just started working I think there was a bug or something. Thanks anyways for trying to help! Goodluck to you all!

1 Like

mark a solution plz, so people who already helped you don’t get notified when someone sends a reply

??? I literally said change the Enable property on the ScreenGui or change the Frame’s visible property???