Eddited luascript.cpp to fix issue #2 and many other related issues.