Close button closes all GUI's

Are you sure you didn’t do something wrong? Here is my script:

local you = script.Parent.Parent.Frame

script.Parent.Touched:connect(function()

  you.Visible = false

end

The one called ‘PokeMessagingSystem.’

Which gui’s do you NOT want to be closed?

Every other one, including the ones in StarterGui.
To clarify, nothing but the ‘PokeMessagingSystem.’

So it should look like this?
local you = script.Parent.Parent.Frame

script.Parent.Touched:connect(function()

script.Parent.PokeMessagingSystem.Visible = false

end

emmm this is formular my mistake but other script piece work , isn’t it ?

I don’t understand what you’re saying.

nope , nothing interesting . The button is working . I just tested it on my place

Hm, could you make a game uncopylocked so I can see the script?

emm ok
(30 characters I need to )

Okay, thank you very much. And send the link as well please.

here you are Button Test - Roblox

It works, but the close button doesn’t go invisible.

I can make it invisible :roll_eyes:

Can you do that then, please? Thanks.

I just made it ! Enjoy friend !

1 Like

It works! Thank you very much!

1 Like