script.Parent.MouseButton1Click:Connect(function() print("Buttton Clicked") if script.Parent.Parent.Open.Value == false then script.Parent.Parent.Open.Value = true script.Parent.Parent.Frame:TweenPosition(UDim2.new(0.532, -200, 0.5, -150),"Out","Quint",1,true) print("Gui Opened") else script.Parent.Parent.Open.Value = false script.Parent.Parent.Frame:TweenPosition(UDim2.new(0.532, -200, -0.5, -150),"Out","Quint",1,true) print("Gui Closed") 
end 
end)

2 comments

0

Would you be able to format this correctly, please?

0

edit:- fixed codeblock