Thread:Extension talk:Scribunto/Cannot install sandbox for Lua 5.1.4 LuaJIT 1.1.8/reply

Since that error mentions LUA_GLOBALSINDEX not existing, it looks like it was the one from Lua 5.2, which indeed isn't supported. Can you post the error you get from 5.1?