That's kind of a paired down file from the actual one I'm using. I just took out everything that didn't relate to this problem.
I'm using the color change as a test. Basically, those switch bricks will turn into real bricks and back. When they're turned off, the shadows will turn invisible and lose their collision, but when they are turned on they'll turn visible and get their collision back.
I'm just trying to figure out how I'll do that. It seems like from everything I've read that what I have there should be working. I'm guessing I have something in there wrong though.
Maybe there's a better way of identifying the shadows as being pinned to the switch bricks? All I've really been able to find is the UID thing.