Hi there,
I have a good knowledge of Lua (language and C implementation) and I'm sure I can convert your script.
If you would like to receive assistance with you task, please leave more details in the chat, I will answer in few hours.
Thanks
Regards,
Antonio