Ui textlable and the textbutton not closing

How can I make the OK textbutton close all the textlable ui that is on screen? Not all the ui just the boxes one’s!

Here are the picture
-Explorer image
-Game Ui -


-Script -

1 Like

For some reason When I press the OK textbutton the ui doesn’t close!
image

1 Like

There’s no Info label there only Notification

I just don’t understand script where does the Notification do and the TextButton (OK) the close button!

I don’t really know what you said in this message

Alr, Let me explain it!

Look at the picture the one says OK text button I want that button to work It doesn’t work (Not closing the ui)

When I click or tap on the Ok button The ui doesn’t work/close. The problem is on script i don’t know how to script the button that can close the OK button ui!

try setting the zindex of the textbutton to a higher number

1 Like

Let me get this straight, you want TextButton and Notification to not be visible?

Then why are you making InfoLabel not visible?

You also need to make the button not visible.

1 Like

How much higher I put 100 or I can put more?

1 Like

just make sure its higher than the others

1 Like

Yes I want the TextButton is (Close Button) and Notification not be visible!
When I click on the TextButton the notification ui will not me visible!

1 Like

what is this black transparency thing in the background, is it the text label’s background?

if so, try making it a frame

-frame
  -text label
  -textbutton

Yes the black thing is a background of the textlable!

I already told you what to do. You need to get the path to TextButton and Notification and make them both not visible.

try making it a frame instead (as a background)

image
So far i done this!

great now make the frame visible to false in the script

1 Like

Is that it? and on the script it’s talking about InfoLable, Closebutton do I have to change them?

try doing something like this

local notification = closeButton.Parent.Notification

local main = notification.Parent

closeButton .Activated:Connect(function()
	main.Visible = false
end)
1 Like