Difference Between UDim2.Width and UDim2.X

Question about UDim2 datatype & its properties.
In the API they list have the property .Width and .X, and respectively .Height and .Y
https://developer.roblox.com/en-us/api-reference/datatype/UDim2
image
The descriptions of each property are the same.
Is there no difference whatsoever? They both print & return the same results.
What’s the point of having each…?

Kind of dumb that this hasn’t been solved for over 2 years. I’m confused as well

They are the same thing. I tested that by creating a UDim2 and comparing values of X and Width (using ==) and it was always true.

2 Likes

UDim2.X was probably meant to be deprecated with UDim2.Width as its successor, but maybe they forgot to actually deprecate UDim2.X.