Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do i detect changes for multiple elements?

Hello,

I am trying to have a way to close specific GUI's when others are enabled, one of these GUI's needing to be closed if any other gui is opened. The issue i am having is how am i supposed to detect if other GUI's are visible? Essentially, im trying to make this GUI have a visibility of false whenever any of...

script.parent:GetChildren()

Is visible. Is it possible and if so how?

Thank you!

2 answers

Try this script if it works:

for i,v in pairs(script.Parent:GetChildren()) do
	v.Visible = false
end

The script in the question is kinda confusing. I hope this script works for you!

Have a good day!

Sorry, i am bad at explaining. This is not really what i was trying to do, although i did find a way to make it work the way i wanted to. Anyways thanks for the help!

This discussion is preserved as it was. New answers, comments, and votes are closed.