Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

I've made a close button for my Shop GUI but it isn't working, how to fix?

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

0

Is it a Script or a LocalScript

1 answer

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

2 comments

0

I hate to be that person, but I'm confused what I'm removing and placing

0

ill clear up the instructions

This discussion is preserved as it was. New answers, comments, and votes are closed.