Is it possible to make a better camera for my game?

So basically my game Bloxy Roads is a game where players race to the end and have to watch out for obstacles placed along the road.

As the maps progress cars might be moving in really steep turns.
The issue is the camera doesn’t rotate relative to the player’s head.

How can I make the camera rotate along the dimension of the player’s head orientation?

This would let me make maps like rainbow road inspired maps with lots of twists and turns.

Is it possible?

If you use a local script to set the camera’s CameraType to Enum.CameraType.Attach, the camera will be locked to the player’s head in the Y-Z plane.

Players will still be able to pan their camera up or down, but if you don’t want that then you’d have to use Enum.CameraType.Scriptable and use a RunService event to lock the camera in your desired angle and offset from the player’s head.

roblox should make the attach camera be for X plane too

But then the camera wouldn’t be attached because you would be able to move the camera in any direction.