HI, I'm Tantalingo and I'm currently making a game. In this game, I have a welcome screen with a text button. I want to make it so when the text button is clicked, the GUI isn't shown anymore.

Thank you, .Tantalingo.

local Button = script.Parent
Frame = script.Parent.Parent.Menu

if Frame.Visible == true then
Frame.Visible = false
end
end

Button.MouseButton1Click:connect(onClick)