New Luau should fix this undefined Lua table operation

Here’s a related reply from @zeuxcg:

If you really need to track the length of an array with holes, you should probably store it yourself instead of using #, as the behavior is somewhat undefined. The implementation is a balance between performance and consistency.

2 Likes