Try putting SetObjectEnabled and Trigger into startThread functions. I don't have the ability to test the script under these conditions (even on a "powerful" machine, it takes several seconds to load :().
Random map in Heroes of Might and Magic.
Without disabling objects, it loads faster. But here, all the other scripts are likely influencing it as well.
Out of 5 attempts, the map froze 4 times, and once I didn't even notice it against the general background.
We'll keep testing...
NHF 0.90 : NHF - группа в VK
Карты для HeroesV:
Путешествие , Условие крови , Рука судьбы.Часть 1: В поход , Рука судьбы.Часть 2: Отчаянье , Рука судьбы.Часть 3: Восхождение , Стойкость
Абсолютная власть , Иду на Вы! , Корона Ургаша , На задворках
Мир надо уничтожить... Чтобы создать свой...