[help] ia-ems

Good afternoon everyone, sorry for any typos during the topic, I don’t speak English, I’m using the google translator. Well, I’m using benpazzo’s script. script it’s based on “AI Mechanic”. Alias this is my first publication, I’m sorry for anything.

AI Doctor: AI Doctor

AI Mechanic: AI Mechanic

It turns out that the script is broken and I didn’t find anything like it on the internet, so I decided to fix it myself, I don’t know Lua but I am familiar with some languages, I was deducting the code, based on the Mechanic that working

Apparently I got some progress, the game doesn’t return an error on the console or F8 anymore, but it isn’t working. Setei the command / emergency to trigger the script and nothing, I will leave a download link here would someone more experienced in the subject, language could take a look and give me feedback?

Download: Script