How do I extract files using Lua? Update: I now have the following code but it crashes every time it reaches the end of the function, but it successfully extracts all the files and puts them in the
stackoverflow.com
[ML] (error) test.lua: D:\Games\morty summer low\moonloader\test.lua:1: module 'zip' not found:
no field package.preload['zip']
no file 'D:\Games\morty summer low\moonloader\lib\zip.lua'
no file 'D:\Games\morty summer low\moonloader\lib\zip\init.lua'
no file 'D:\Games\morty summer low\moonloader\zip.lua'
no file 'D:\Games\morty summer low\moonloader\zip\init.lua'
no file '.\zip.lua'
no file 'D:\Games\morty summer low\moonloader\lib\zip.luac'
no file 'D:\Games\morty summer low\moonloader\lib\zip\init.luac'
no file 'D:\Games\morty summer low\moonloader\zip.luac'
no file 'D:\Games\morty summer low\moonloader\zip\init.luac'
no file '.\zip.luac'
no file 'D:\Games\morty summer low\moonloader\lib\zip.dll'
stack traceback:
[C]: in function 'require'
D:\Games\morty summer low\moonloader\test.lua:1: in main chunk