Some APIs can not use

Ah, that’s important context. Editor scripts run in a whole different environment and normal Defold APIs aren’t available. You’ll only get the regular Lua functions as well as the editor module. Though since the Lua version used in the editor is 5.2, you should also get the bit32 module to replace bit from LuaJIT.