Pretty much as the title says, I want to know what the best way to structure GUI objects and their data. For example, if a game has a main HUD, with stamina, health, etc, how should all the functions for editing it be stored? Should the GUI objects all be organized in folders in startergui, with a single modulescript used to update the GUI, or is better way? (also, should OOP be used with it, or is it unnecessary?)
It all depends on your developer preference or developer team preference, I personally make one local script in Starter Player then load all my modules through that and organize them an example would be
StarterPlayerScripts/
├─ FillerModule.lua
├─ LoaderClient.lua
│ ├─ UIClient.lua
│ │ ├─ Health.lua
│ │ ├─ Stamina.lua
1 Like