I am trying to make it when I click one gui It will make others dissapear This is the one that works the script is inside this Image Button
local ImageButton = script.Parent
function onClick()
if ImageButton.Visible then
ImageButton.Visible = false
end
end
And this is what I tried
local ImageLabel = game.StarterGui.Welcome.ImageLabel
function onClick2()
if ImageLabel.Visible then
ImageButton.Visible = false
end
end
button.MouseButton1Click:connect(onClick2)
