invis = -- i can't find the button i want to make invisible script.Parent.MouseButton1Click:connect(function() invis.Visible = false end)
Hello!
The instance looks like it's a child of Frame
isn't it?
invis = script.Parent.Parent["Enter here the name of the button"] -- replace the text that's in "" with the button name script.Parent.MouseButton1Click:connect(function() invis.Visible = false end)
If it is a child of StarterGui
then:
invis = script.Parent.Parent.Parent["Enter here the name of the button"] -- replace the text that's in "" with the button name script.Parent.MouseButton1Click:connect(function() invis.Visible = false end)
See what I did?
I 'jumped' from parent to parent to the Parent
where the button is.