why is this not moving my gui out when i click then button?
Asked by
7 years ago Edited 7 years ago
script.Parent.MouseButton1Click:connect(function()
if script.Parent.openclose.Value == false then
script.Parent.Parent:TweenPosition(UDim2.new(0.7, 0, 0.4, 0)'out', 'Linear', 1)
script.Parent.Parent.Parent.mainshop:TweenPosition(UDim2.new(0.2, 0, 0.4, 0)'out', 'Linear', 1)
script.Parent.openclose.Value = true
elseif script.Parent.openclose.Value == true then
script.Parent.Parent:TweenPosition(UDim2.new(0, 0, 0.4, 0)'in', 'Linear', 1)
script.Parent.Parent.Parent.mainshop:TweenPosition(UDim2.new(-5, 0, 0.4, 0)'in', 'Linear', 1)
script.Parent.openclose.Value = false
end
end)