Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

How would I make an open/close button? [closed]

Asked by 4 years ago

So I know how to make a gui where a button opens it and another closes it, but how would I make it so the same button can open/close a frame?

0
Just a reminder, we aren't a script request community, we fix code for you. I'm sure there a plenty of tutorials on the topic zadobyte 692 — 4y

Closed as Not Constructive by User#23252

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
1
Answered by 4 years ago
Edited 4 years ago

here:

script.Parent.MouseButton1Click:Connect(function()

    script.Parent.Parent.Frame.Visible = not script.Parent.Parent.Frame.Visible

end)

if you want it to slide you would have to use another script thats involves tweening.

0
Why don't you just use "false" instead? rabbi99 714 — 4y
Ad