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

0

Are you sure your hierarchy is correct? Also, why do you have a (`) near your function?

0

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.

0

soooo any help?

0

can we see your hierarchy please?