Here is an interesting reddit thread on why Lua isn’t more widely used: https://www.reddit.com/r/lua/comments/2uv1ph/why_isnt_lua_a_more_widelyused_language/

It excels as a secondary language, but other languages have a stronger foothold as scripting languages.