How to turn only the second model?

  1. Hi, I want to make a turret that looks where camera turns.

  2. I want to turn only the turret but the whole model turns.

  turnVector = CFrame.Angles(math.rad(0), math.rad(5), math.rad(0))
  turnVector = turretMain.CFrame * turnVector
  turretMain.CFrame = turnVector

What constraint should I use or what’s wrong with my code? Thanks!

Make the top part a model itself, make a primary part for it, weld that primary part to 1 object. Change it’s C0 or C1 (CFrame offsets of welds).

use hinge constraint and set it to servo.
set your speed and set the torque to a high number like 10,000.