It would be much easier to help if you could share your code (the screencast video player is really slow!)
But in the meantime, I'd suggest using Families for this kinda thing. It's a lot easier to use one block of code that governs multiple objects.
I've put a quick example together here, see if it's helpful!
drive.google.com/file/d/1i8sKF7b0PxsrmsBy3Whi1I_3bHFSsCUq/view