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?

3 comments
is it a local script
It has to be a local script inside of the button. If it's not that then it won't work.
Thanks for the advice! It's not a local script.