• Lua error
    4 replies, posted
I need help with my lua script. The script is msg("Hi there") and I saved it in the lua folder in the garry's mod folder. When I go into singleplayer and type "lua_openscript test.lua" I get this error [ERROR] lua/test.lua:2: attempt to index global 'kinect' (a nil value) 1. unknown - lua/test.lua:2 I am not sure what it means by kinect so I really need help and if you could help me please reply
Come on guys any help? It would be really appreciated!
Try lua_openscript_cl test.lua About the error, give us more information ?
I'm pretty sure test.lua is inside the gcf. Name it something else (also, msg isn't a valid function unless you're creating it. Lua is case-sensitive. It should be Msg, and if you don't want to add \n, MsgN).
I answered his question over at the Lifepunch forums. There is a test.lua in the gcf that tests Kinect functionality. Renaming it fixed it for him.
Sorry, you need to Log In to post a reply to this thread.