I wanted to create a GUI, but I want the items in the GUI to automatically space themselves. How could I get this result using some simple math? The max is 5 items spaced out like so. The GUI will place them like so if it is a odd number. If the number of items in the GUI is even I would place them like this My solution was very complicated and long and was looking for something smaller and simpler.