This is a Luau bug, but since this affects Net this issue will serve as a guide for how to workaround this and provide information on it.
If you would like to track the Luau Issue, it is here luau-lang/luau#819.
In order to workaround this bug, you can do this when querying:
for pos, sender, str, num in route:query():iter() do
-- Do something
end
In the meantime, there is nothing we can do to fix this for Net, you will either have to use the workaround or wait until the new Luau Type Solver comes out.
This is a Luau bug, but since this affects Net this issue will serve as a guide for how to workaround this and provide information on it.
If you would like to track the Luau Issue, it is here luau-lang/luau#819.
In order to workaround this bug, you can do this when querying:
In the meantime, there is nothing we can do to fix this for Net, you will either have to use the workaround or wait until the new Luau Type Solver comes out.