I don't know if I am being specific but I'm scripting a textbutton you click on it and it opens a window... But when you open it it needs to close the resent window... Example this is the script...
local Button = script.Parent
Frame = script.Parent.Parent.SheffGui
function onClick()
Frame.Visible = false
end
Button.MouseButton1Click:connect(onClick)
SheffGui is the thing that needs to be closed...
(Please reply helpful comments) :D |