you keep all the code in one file that things can get a bit messy.
Putting your code in separate files helps you not only keep your different pieces of code separated from each other, but it helps you visualize the structure of your program.</p>
<p>Let&apos;s start with a single <em>main.lua</em> file and we&apos;ll then split it into different files:</p>
<pre><code class="lang-lua"><span class="hljs-keyword">local</span> my_cool_functon = <span class="hljs-function"><span class="hljs-keyword">function</spa