TweeningGUI error

It’s supposed to be when your mouse hovers over an image, the image expands.
Not much as an issue more of an inconvenience. ^

So basically it works, but it only expands to the right and below (instead of expanding all ways)

(Its using size tweening btw)

script.Parent.MouseEnter:Connect(function()
	script.Parent.ImageTransparency = 0.12
	script.Parent:TweenSize(UDim2.new(0, 229,0, 120), "Out", "Linear", 0.1, true)
end)

script.Parent.MouseLeave:Connect(function()
	script.Parent.ImageTransparency = 0
	script.Parent:TweenSize(UDim2.new(0, 218,0, 117), "Out", "Linear", 0.1, true)
end)

Is there a way I can make it expand all ways? I have tried changing the position to center it, but that didn’t work.

Studio properties

AnchorPoint = 0.5,0.5

This will set the center point to the middle of the image.

1 Like