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)

4 comments
Are you sure your hierarchy is correct? Also, why do you have a (`) near your function?
The
marks are typically used to format code. We use them for inline code block here, so he had to replace them and jsut forgot to delete themarks themsevles.soooo any help?
can we see your hierarchy please?