Share your repls and programming experiences

← Back to all posts
Roblox Vector2 to UDim2 converter
roleypoley (0)

no need to type long 4 parameter udims anymore!

usage:
local convert = require('UIVector2')
local vector2 = Vector2.new(500,200)
local udim = convert:ToUDim(vector2,'Scale' or 'Offset')
uielement.Position = udim