I have seen this some 15 or so years ago on TV. That was around the years 1999 to 2002 I guess. Here's what I can scarcely remember:
I remember it being real people, not animated.
The theme was science-fiction.
There was a group of people, possibly in their late teens / early tweens. Men and women.
The part of the plot I remember was them being aboard a crashed(?) spaceship, they had to cross through a doorway to get to the control room (or some other important part) of said ship. But there was a twist: They had to pass through the doorway at some specific interval, if they ran through at the wrong time they would be caught inside it and turned into a cyborg(?).
Which is what happened, someone got caught and then I think they started to shoot at the others.
Now that is not much to work with I know. But it's all I remember. The one flashy scene from almost 2 decades ago.
I can confirm it not being Earth Star Voyager. I have stumbled upon that movie via the suggestions coming up when creating a new question and subsequently watched it over the course of the last 3 hours.
I can also confirm it not being Cyborg. Although I can recommend this 1999 movie to anyone that enjoys tech-horror.