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

[SOLVED] I have a problem with UI script buttons, further helps?

Asked by 5 years ago
Edited 5 years ago

I was making a script for my GUI buttons, I tested it both client and studio. The script works and it doesn't give errors but it won't work, (my game is in FilteringEnabled), Further helps please? Thanks as an advance!

script.Parent.MouseButton1Click:Connect(function()
    script.Parent.Parent.Parent.Frame.Visible = false --this doesn't work.
end)

I clicked it many times ASAP that it would work, but never worked. Is there any problems?

0
is it a local script DinozCreates 1070 — 5y
0
It has to be a local script inside of the button. If it's not that then it won't work. tonyv537 95 — 5y
0
Thanks for the advice! It's not a local script. cherrythetree 130 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

Put that script inside a local script.

Ad

Answer this question