Rare Spawn
Well-known member
- Joined
- Oct 10, 2022
- RedCents
- 3,282¢
Hello, I have a collection of Lua functions I used for multiple scripts... right now I have copies of several pages of functions at the top of ALL my scripts... its very inefficient when I fix or improve a function, I have to copy/paste it to all my other scripts.
How in Lua, do I create a single file for just all my functions... aka an include file, or a library, that I can then reference with my other scripts? I have tried 'require' and also 'dofile', I am not doing something right as neither is working. Can I get a push in the right direction? -- thanks
How in Lua, do I create a single file for just all my functions... aka an include file, or a library, that I can then reference with my other scripts? I have tried 'require' and also 'dofile', I am not doing something right as neither is working. Can I get a push in the right direction? -- thanks

