This code makes studio freeze, and I have no idea why

I need high values though, ill try another way.