Hello. I’ve been doing some very basic camera manipulation in order to position the player’s camera over a counter-like object. And although I have achieved this to my liking, I ran into a problem that I can’t seem to figure out the answer to.
When switching the camera’s type from custom to scriptable and then back to custom it seems to suddenly reposition the camera’s zoom distance back to what it was originally. Here is a gif of the issue
https://i.gyazo.com/c5762de8df992d9bc3f2bbb680a07512.mp4
I am pretty much just tweening the camera behind the counter(while also teleporting the player’s character behind the counter) and then when the player is done I tween the camera to a specific CFrame behind the character. After this final tween, I then set the camera back to its normal self.
Once I set the camera back to its normal self(Camera.CameraType = Enum.CameraType.Custom
) that sudden frame jump to the original zoom distance occurs. Changing the camera’s subject has nothing to do with this problem either.
I would like a smooth transition from scriptable to custom without the camera’s zoom distance being changed at all.
I have tried manually setting the CFrame back to the final tween CFrame but as you can guess, that didn’t work. I have also tried manually setting the Camera’s Zoom. Course, we don’t have permission to do so. So I am sorta at a loss.
I am not sure if there is a fix to this other than scripting my own camera system, but when all hope is lost, I figured I’d see if any other developers have faced this problem and came up with a solution of their own.
Thank you very much!