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

How would I make an open/close button?

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?

1 comment

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

1 answer

✓ Accepted answer

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.

1 comment

0

Why don't you just use "false" instead?

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