I tried a new map with a barebones Script.
It does not crash but it freezes and i have to alt+F4 out of it.
player teleport 16 30 0
map return
I have no clue what to try now.
You can find most of it in the EFPS wiki
https://ragnarrandom.com/uefpsew/index.php/Old_Manual_Scripting