Lag problem with my custom AIs

I think my lags come from the AI ​​that I customized, is there anyone who has already touched it and can explain to me what causes this incident?
Because right now I can’t understand what can trigger it.
The problem gets worse when my 4 custom AIs work.
I can’t understand.
I can share the scripts with you to know where this shit is

Nobody have any ideas ?

Costumized ? what do you mean ? If you made your own AI, then congratulations, but that’s impossible. The only thing you could have done is modify existing scripts and forget to put a certain character. Try monitoring the RAM memory while playing and see if the memory “fills up” over time…