From this thread? Frames per second - different when using dt versus system clock
The code does not work because it’s part of a larger whole. “length” is not a native thing. But table.length and # are. So that user must have made their own length function and imported it globally or included it higher above in their script from where that is from.