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

How can I make this Gui script work? [SOLVED]

Asked by
itsJooJoo 195
8 years ago

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!

0
Is it a localScript? Is it in a screenGui? theCJarmy7 1293 — 8y
0
It's in a regular script in a TextButton itsJooJoo 195 — 8y
0
Is FilteringEnabled enabled? If so, move the script to a LocalScript. M39a9am3R 3210 — 8y
0
Thank you so much M39! It's fixed now! itsJooJoo 195 — 8y

Answer this question