I understand the basics of Lua and can canibalise previous code to make it do what I want it to but I’m just confused about how the Lua file is originally run.
The only thing I can liken this question to is Expression 2.
In that Expression 2 has runOnTick(1) and any “functions” and if-thens are run on the game tick.
But i’m confused about how it works with Lua.
Is there a master script that runs on server start that makes the subscripts run or are specific scripts automatically run continually whilst the gamemode is running.