So I'm making a sort of shop gui, and I have a TextButton that when clicked, is supposed to show the frame holding the gamepasses. Here's the script I put inside the TextButton:
function onClicked()
script.Parent.Parent.ShopFrame.Visible = true
end
script.Parent.MouseButton1Down:connect(onClicked)
It works in the Studio testing mode, but when I go to the Roblox player, it doesn't show up when I click the textbutton! Please help!

4 comments
Is it a localScript? Is it in a screenGui?
It's in a regular script in a TextButton
Is FilteringEnabled enabled? If so, move the script to a LocalScript.
Thank you so much M39! It's fixed now!