script.Parent.MouseButton1Down:connect(function(clicked)
local val = script.Parent.Parent["Open/Close"]
if val == false then
script.Parent:TweenPosition(UDim2.new(0, 0, .5, 0),"Out","Sine",3.75)
script.Parent.Parent.Frame:TweenPosition(UDim2.new(-.3, 0, .5, 0),"Out","Sine",3.75)
script.Parent.Text = ">"
elseif val == true then
script.Parent:TweenPosition(UDim2.new(0.3, 0, .5, 0),"Out","Sine",3.75)
script.Parent.Parent.Frame:TweenPosition(UDim2.new(0, 0, .5, 0),"Out","Sine",3.75)
script.Parent.Text = "<"
end
end)
I was too lazy to replae the GUI and reposition it, so I did it like this. |