Specific camera?

I’m looking to create a very specific camera system. My goal is to create a camera that can only move on a specific axis, with some kind of parameter that can be changed to let it move on another. This ideally would also be able to change the angle of viewing from this

to something like this for example

This is crucial to the game I want to create and i’ve been able to get everything down but this

I’d recommend reading over Camera Manipulation, it has good information regarding this thread, and just in general!

I did before when trying to solve this but i’ll go over it again, I think I would need to cframe it with like tweening or something for the desired effect