Now it’s time to specify exactly what the new size of our health bar will be. The UDim2 has a lot of parameters so it can build the specific size you want.
In order, the parameters will be: X scale, X offset, Y scale and Y offset.
We want the X scale, or the width, to represent how much health our player has, so write humanoid.Health for the first parameter.
The X offset should be kept to 0 as always.
The Y scale, or the height, should match the parent’s scale. What number do we use to make a child match the parent scale?