lilOptionz You don't need to pick instances inside the "For Each" loop. Like I said, this loop processes one instance at a time, so the instance is already picked! Just use "Compare Two Numbers loopindex=0" condition.
Your events where you are trying to pick players by comparing loopindex make no sense. Also, expressions like loopindex(1)&loopindex(2) are totally wrong, loopindex doesn't take numerical argument.
And as lionz mentioned, you shouldn't run this code on every tick, make sure it's executed once when needed, for example when a layout with scores is opened.
Try changing the code like this: