You can learn from this video on how to do a super simple open and close a frame
here's the code
local SGui = script.Parent
local Frame = SGui:WaitForChild("Frame")
local CloseButton = Frame:WaitForChild("TextButton")
local Button = SGui:WaitForChild("TextButton")
CloseButton.MouseButton1Up:Connect(function()
Frame.Visible = false
end)
Button.MouseButton1Up:Connect(function()
Frame.Visible = true
end)
Enjoy the rest