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

0

Is it a localScript? Is it in a screenGui?

0

It's in a regular script in a TextButton

0

Is FilteringEnabled enabled? If so, move the script to a LocalScript.

0

Thank you so much M39! It's fixed now!