How is Lua ran on the VM?

I have a general idea, that being the tokens are fed to the VM which are then translated to assembly instructions. From there, being converted to cpu instructions (machine code). However I am not sure if I am correct, so what is the exact process on how lua is built?

Roughly speaking, that’s what’s going on internally. Unfortunately the implementation of Lua Roblox is closed and the exact details are not known, except for some publications.

Since Lua Roblox (now Luau) is an implementation of Lua 5.1, all documentation on the Lua 5.1 MV should be applied to Lua Roblox.

Here are some interesting links:

https://thesephist.com/posts/lua/