There seems to be some weird quirk in TurboWarp where there's a hard limit on the amount a custom block can run, even with screen refresh on. On Scratch, if you run the project, the variable will keep increasing forever, however on TurboWarp, the variable will abruptly stop at somewhere around 5000.