I have a library on GitHub that is a Lua wrapper that I want to put in Roblox. Any way I can compile the lib into a .rbxm
file?
If you don’t get an answer to this (seems unlikely to be doable from a security point of view), you might try a feature request to have the library added for all if it has broad enough appeal.
I’m not sure there is a way to import a C library into roblox.
It’s much harder to sandbox C code than Lua, so Roblox doesn’t support this. You can try to make a feature request, but I doubt anything would come of it.
They have looked at adding another sandboxed language before, but I think they’ve since buckled down on optimizing lua and adding features to the language. You’ll have to port the library completely to luau, not just have a wrapper. Alternatively you could host the C library on an external server you own and send HTTP requests whenever you need its functionality.