I have 2 scenes with the same code on both and they both contain a for loops which is the same. I am getting a Duplicate variable definition error because both for loops are the same so how do I remove the duplicate variable error.

I have tried declaring the variable outside the for loop but then I end up getting lops of errors.

Cheers,
Gathanderoth