Saving lua modules

Hello,
How do we save lua modules in Defold. Sys.save , when given a lua module as an argument throws an error, so are there any alternatives to save them.
Thanks in advance

I think we can do a better job of documenting what we support in the Lua tables in sys.save()
Basically, we support Lua tables, not modules.

You can perhaps try to use the io module to handle the io operations yourself?

Oh!! Not file handling functions, :cold_sweat:.
Can anyone show me a code demo on how to use io* functions, just basic saving and loading,plzz

You can’t save functions and some types of user data using sys.save(). Modules usually contains functions as well as data. You should separate the data into a table inside the module and save only that data.