local pos1 = UDim2.new(0.5,-150,0.5,-250)
local pos2 = UDim2.new(-1, -150,0.5, -250)
script.Parent.Parent.OpenClose.MouseButton1Click:connect(function()
if script.Parent.Position == pos1 then
script.Parent:TweenPosition(pos2,'Out','Quad',0.3)
script.Parent.Parent.OpenClose.Text = "Close"
else script.Parent.Position == pos2 then
script.Parent:TweenPosition(pos1,'Out','Quad',0.3)
script.Parent.Parent.OpenClose.Text = "Shop"
end
end) |