no field package.preload['myfuns'] no file '.\myfuns.lua' no file 'C:\Program Files (x86)\Lua\5.1\lua\myfuns.lua'
The error message is giving you a clue; if you were to copy your myfuns.lua into that directory "C:\Program Files (x86)\Lua\5.1\lua" then it will work.