How to get the value X offset value of a udim2 Value

As the heading says i want to get the X offset value of a udim2 so that i can reduce it by 20%

now if the udim2 value = {0.2,0},{0.5,0}
Then i want to get the 0.2 alone.

Really simple, UDim2.Offset.X please keep in mind that docs have all info like that.

1 Like

Thr problem here is that Offset is not a valid member of udim2, so should i change it to a udim and then take offset?

Sorry, my mistake, it’s UDim2.X.Offset.