I've made a close button script and when I click the button on the shop gui nothing happens.
script.Parent.MouseButton1Click:Connect(function()
script.Parent.Parent.Visible = false
end)
Is there something wrong with my script?

1 comment
Is it a Script or a LocalScript