Complex sentence: Razorclaw and Motormaster were the ones who stopped Prime's attack on Serpentor, beating him near death, but were then killed by the Cobra Commander-controlled Serpentor.
Split into simpler sentences: Razorclaw and Motormaster were the ones who stop Prime's attack on Serpentor, beating him near death. They were then slain by the Cobra Commander-controlled Serpentor.