How come you can't multiply UDim values by themselves?

So you can do this

local CframeCal = CFrame.new(1, 2, 3) * CFrame.new(5, 5, 5)
print(CframeCal) - > 6, 7, 8, 1, 0, 0, 0, 1, 0, 0, 0, 1

local VectorCal = Vector3.new(1, 2, 3) * Vector3.new(5, 5, 5)
print(VectorCal) -> 5, 10, 15

but you can’t do this

local UdimCal = UDim2.fromScale(1, 2) * UDim2.fromScale(5, 5)
print(UdimCal) -> attempt to perform arithmetic (mul) on UDim2

I can kind of guess that 3D values are more important than 2D values but shouldn’t be all there is to it.
Is there a specific reason why you can’t do arimethic with UDim values?

1 Like

My guess is that you’re supposed to use Vector2 for 2d math, and they didn’t see much use in multiplying UDim values for gui.

That’s too bad…

I mess around with GUI effects, things like increasing the size of GUI when a player clicks on it and such. So the process to get there is a little… bit more complicated than the other two.