Help with Image Tweening

image

	yieldingTween(script.Parent.Parent.ImageLabel, 0.3, {Size = UDim2.new({0.75, 0},{0.75, 0})})
	yieldingTween(script.Parent.Parent.ImageLabel, 0.3, {Size = UDim2.new({0.95, 0},{0.95, 0})})

The image size is:
image

But the image is just shrinking into nothningness when made smaller then back to this size: does anyone know how i can fix this so it shrinks then grows back

You need to use UDim2.new(0,75,0,75) instead of UDim2.new({0.75, 0},{0.75, 0})

Replace your last 2 lines of code with that :

yieldingTween(script.Parent.Parent.ImageLabel, 0.3, {Size = UDim2.new(0,75,0,75)})
yieldingTween(script.Parent.Parent.ImageLabel, 0.3, {Size = UDim2.new(0,95,0,75)})

Sorry, I just inverted the side, the real code is that :

yieldingTween(script.Parent.Parent.ImageLabel, 0.3, {Size = UDim2.new(0.75,0,0.75,0)})
yieldingTween(script.Parent.Parent.ImageLabel, 0.3, {Size = UDim2.new(0.95,0,0.75,0)})

Thanks for the help, totally forgot about that

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.