So I'm trying to close a GUI than a few seconds or minutes later the other one pops up on the screen but I seem to not be able to do it can you please fix my script I'm kinda new at scripting.
[Script]
script.Parent.MouseButton1Click:Connect(function()
if script.Parent.Parent.FirstFrame.Visible == true then
wait(5.0)
script.Parent.Parent.FirstFrame.Visible = false
if script.Parent.Parent.FirstFrame.Visible == false then
script.Parent.Parent.SecondFrame.Visible = true
wait(5.0)
script.Parent.Parent.SecondFrame.Visible = false
end
end
end)

1 comment
hope it helped