How do I find where the UDim2 position would be?

I am trying to script a GUI that comes down from the top of the screen in the middle just a tad, and I know how to tween and script, I just don’t know how to find the UDim2 values to plug into the script. Is there a way I can do this in Studio using by moving it to where I want and then the properties tab shows the position?

Just make a move to your GUI and look into the properties, you can write it down in Notepad or in your own script.

First, move your GUI to the place where your GUI is when you open it, then look into properties and copy the position value, after you write the position value, slide the GUI up until it’s no longer visible, then you can Tween it into the position that you already copy it. {Position = UDim2.new()}

2 Likes

Wait so the UDim2 value is just the position??

Yes, UDim2 is the position for the UI

1 Like