i made a script that closes the current frame and opens another, but it only closes the current frame and doesnt open the other frame. heres the script. someone told me making it an if statement would fix but it didnt.
frame = script.Parent.Parent local nframe = game.StarterGui.Menu.About
script.Parent.MouseButton1Click:connect(function() if frame.Visible == true then frame.Visible = false end wait(0.6) if nframe.Visible == false then nframe.Visible = true end end)