I'm learning how to script a gui that a frame increases as the exp/health/cash goes up?
UDim2 is a data type that allows you to manipulate GUI sizes and positions. You can use it like this:
GUI.Size = UDim2.new(XScale,XOffset,YScale,YOffset)
Scale
The scale values can be used to make an auto resizing GUI. For example if you had a frame that was 300x300 pixels you and inside that frame you had an image that was set to the size of
UDim2. new(1,0,1,0)
You could increase the frame to 400x400 pixels and the image would follow.
Offset
Offset is measured in pixels. This will be the same on every screen resolution. Having a frame the same size may cause it to be larger on smaller screen resolutions compared to bigger screen resolutions.