UI element scales upside down + the X size gets changed

Only got a few minutes to post this so im gonna make it quick

This code fails to scale correctly, It turns the Ui which should be a pillar into a square and then scales upside down

local val = script.Parent['Value']

val.Changed:Connect(function()
	script.Parent:TweenSize(
		UDim2.new(1, 0, math.floor(val.Value) / 100),
		Enum.EasingDirection.Out,
		Enum.EasingStyle.Linear,
		0.25
	)
end)

image

1 Like

Your UDim2 looks like it only has 3 values.

Yeah, I removed one on accident but it still works without it.

1 Like