Summary
We started this chapter by learning more about GUIs. We learned there are three types of GUIs, and these are ScreenGuis, SurfaceGuis, and BillboardGuis. Each of them has a different purpose. We learned that these GUIs do not display anything themselves—they need GUI elements for that. We learned about the: Frame, ScrollingFrame, TextLabel, ImageLabel, TextButton, ImageButton, and TextBoxe GUI elements. We have seen how each of them works.
While learning about all of these GUI elements, we have used a lot of properties as well. The two most common properties were Size and Position. We learned that both properties use a unique data type called UDim2. We have seen that a UDim2 data type is built from two UDim data types. There is one UDim data type for the x axis and one for the y axis. Besides this, we have seen how a UDim data type is built up by Scale and Offset properties. Scale allows us to keep players’ screen size, whereas Offset is measured in pixels....