For this script I am trying to press a button to close one frame then open another. This script will only close the first one. Can you please help with this script?
function onClick() script.Parent.Parent.Parent.Shop.Visible = false script.Parent.Parent.gamepass.Visible = true end script.Parent.MouseButton1Down:connect(onClick)