I don’t think it has anything to do with the container being tweened. I removed the tween and just tried manually changing the position, it only changes once and that’s it:
CreditsContainer.TextButton.Activated:Connect(function()
print"click"
print(IS_CREDIT_SHOP_OPEN)
if IS_CREDIT_SHOP_OPEN == false then
IS_CREDIT_SHOP_OPEN = true
BuyCreditsContainer.Position = UDim2.new(0.163, 0,0.929, 0)
--BuyCreditsContainer:TweenPosition(UDim2.new(0.163, 0,0.929, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Quint, .7, true)
else -- this else condition never runs
IS_CREDIT_SHOP_OPEN = false
print(IS_CREDIT_SHOP_OPEN)
print"should be closing"
BuyCreditsContainer.Position = UDim2.new(-0.26, 0,0.929, 0)
--BuyCreditsContainer:TweenPosition(UDim2.new(-0.26, 0,0.929, 0), Enum.EasingDirection.InOut, Enum.EasingStyle.Quint, .7, true)
end
end)