Creating GUIs
In this section, we will learn all the cool things about making GUIs. In Chapter 4, Securing Your Game, we already introduced GUIs when we made the team changer. However, we did not make the GUI ourselves back then. So, in this section, we will learn how to make UIs ourselves.
UIs are something we, as players, can interact with. Because players can directly interact with GUIs, this means they are on the client. This is important to remember. Many beginner programmers try to use normal scripts to control aspects of the UI. The worst part is that they somehow manage to get it working. This is an extremely bad practice and should never be done or attempted.
There are multiple types of GUIs. In Chapter 4, Securing Your Game, we saw the usage of ScreenGuis. However, there are two more that we will cover throughout this chapter. Besides ScreenGuis, we will also learn about SurfaceGuis and BillboardGuis. In the next subsection, we will start by looking deeper into ScreenGuis...