Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Shop closing and Frame opening?

Asked by 9 years ago

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)
0
Are you sure your hierarchy is correct? Also, why do you have a (`) near your function? unmiss 337 — 9y
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 the `marks themsevles. adark 5487 — 9y
0
soooo any help? docrobloxman52 407 — 9y
0
can we see your hierarchy please? AmiracIe 175 — 9y

Answer this question