So I want it so my ui’s to close whenever a different one opens and I can’t really figure it out.
Here is my script:
local main = script.Parent.Main
local weapon = main.Choose.Weapons
local setting = main.Settings.Settings
local update = main["Update Log"].Frame
if weapon.Visible == true then
setting.Visible = false
update.Visible = false
end
if setting.Visible == true then
weapon.Visible = false
update.Visible = false
end
if update.Visible == true then
main.Visible = false
setting.Visible = false
end
I know the script looks like it’s made by a beginner and all but can anyone tell me what I have to do