For-loops love to slow down games when using live code. I’m not sure if it’s because of “var”, or just because how live code is executed.
My solution to make it faster is to put code inside for-loop into separate script and live update only that script, not event where for-loop is.