While the variable referencing the part is in scope or will enter a scope in the future (as an upvalue for example), it won’t be collected. First scenario is collected, second scenario is collected too after the loop breaks.
1 Like