Lua function script analysis