Hello there! I'm BlackOrange and I'm here to help!
To start off, next time use code block.
Anyway, you don't need the variable Open
unless your tweening and you could wait until Tween is complete, other then that it's not necessary. To make a nice Frame Open and Close with 1 button just requires a little bit of knowledge.
Let's start off with variables: Note that you need LocalScript
1 | local Button = script.Parent |
Now, let's use the MouseButton1Down function:
1 | local Button = script.Parent |
4 | Button.MouseButton 1 Down:Connect( function () |
Now let's give it a command:
01 | local Button = script.Parent |
04 | Button.MouseButton 1 Down:Connect( function () |
05 | if Frame.Visible = = true then |
Now with what we have, it checks the frame's visibility and then changes the visibility based on what it's current value is.
Make sure you define your frame!
Hopefully this helped! Best of luck
-- BlackOrange3343