I’m trying to make a something that allows you to position the camera so a model fits inside a box on the screen
The only problem is that I can’t figure out how to calculate the CFrame of the Camera. I have tried out a lot of different things but they never deliver the result I want.
The box on the screen is positioned in the middle of the screen and as size it has an X scale of 0.25 and a Y scale of 1 and the frames SizeConstraint is RelativeYY
Here is an example of what I’m trying to accomplish