Save it as whatever you want, run it, and it should automatically make all the functions in it.
It is free to copy, no credit in any script (although it isn't as good as Mniip's)
I still have to get it to this computer (I wrote it on a different computer), so it might be very outdated.
I ran it and came up with this error: lua2.lua.txt:107: '=' expected near 'preview'
which line would that be?