Model following camera

I am trying to make a turret on the top of a vehicle that is controlled by a passenger where, as they move their camera, the turret moves with it. A bit like in the popular Valve game: Half Life 2.
If you do not know what i am talking about, here is a brief example: https://gyazo.com/6f2916da0f9edc6b62ac07cbecfd10d9

1 Like

You’d do something like this:

LookVector = Camera.CFrame.LookVector
Turrent.CFrame = CFrame.new(Turrent.Position,LookVector)

The LookVector is the Vector3 position that the Camera is pointing to.

By doing CFrame.new(Vector3,Vector3) you get a CFrame with the first Vector3 as the standing position and the second Vector3 as where it looks towards.