Round UDim offset values

This commit is contained in:
Richard 2024-08-18 14:50:17 -07:00
parent 3d324cc30b
commit 99dad2b66b

View file

@ -115,11 +115,11 @@ local vec6_to_type = {
end :: Vec6ToType<Color3>,
UDim = function(v)
return UDim.new(v.X, v.Y)
return UDim.new(v.X, math.round(v.Y))
end :: Vec6ToType<UDim>,
UDim2 = function(a, b)
return UDim2.new(a.X, a.Y, a.Z, b.X)
return UDim2.new(a.X, math.round(a.Y), a.Z, math.round(b.X))
end :: Vec6ToType<UDim2>,
Vector2 = function(v)