Open + Close script

This is a open and close script. If it does not work, please tell me. :slightly_smiling_face:

1. Open Script

---------------------------

script.Parent.MouseButton1Click:Connect(function()

script.Parent.Visible = false

script.Parent.Parent.Frame.Visible = true

end)

2. Close Script

--------------------------

script.parent.MouseButton1Click:Connect(function()

script.Parent.Parent.Visible = false

script.Parent.Parent.Parent.TextButton.Visible = true

end)

reminder, this is only for gui’s. if you would like a tut i can post it on my youtube channel.
thanks, btw only do a localscript for these scripts.

2 Likes

#tutorial category please.

1 Like

Cool! Thank you! I may use it when roblox is fixed!

1 Like