Roblox Wiki Udim2
Construct a new udim2 given the coordinates of the two datatypeudim representing each axis.
Roblox wiki udim2. Scale is a number between 00 and 10 that is a percentage of the parent objects size. It will not play if another tween is acting on the guiobject and the override parameter is false. Udim2fromscale number xscale number yscale. These are used to figure out where exactly the udims position is.
Xscale xoffset yscale yoffset. A udim consists of a scale and an offset. Udim2new is for moving gui. For use it you need to said wich frame youll move or sizeudim2new use fourth value one for the position of x for the scale the second is for the x too but for the offset the third is for the y scale and finally the fourth is for the y but for the offset xscale xoffset yscale yoffset.
Gui origin udim2 guis have the origin of udim2new0000 where the size and positions have scales and offsets of 0 on both axes. The constructor takes parameters in the order. Udim2new udim x udim y construct a new udim2 given two datatypeudim objects representing the x and y dimensions respectively. Data typesbasic lua typesnil boolean number string function.
Smoothly moves a gui to a new datatypeudim2 position in the specified time using the specified enumeasingdirectioneasingdirection and enumeasingstyleeasingstyle. This origin is located in the top left corner of the parent element. Udim stands for universal dimension and uses 2 coordinates.