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?
try removing one of the parents from
script.Parent.Parent.Visible = false
and placing this
local btn = script.Parent btn.MouseButton1Click:Connect(function() print('clicked') --change this accordingly
into a script inside of the button