I was confused about how to implement a poppercam, resulting in failed attempts where it would place the camera beside the obstruction but still have a part of the camera clipping through the obstruction.
This was until I found:
I tested it and it did exactly what I wanted it to:
local Distance = Camera:GetLargestCutoffDistance(players.LocalPlayer.Character:GetChildren())
Camera.CFrame = Camera.CFrame * CFrame.new(0, 0, -Distance)
However, it says in the article that it’s deprecated. Is there a better way of doing this, or should I just use this despite it being deprecated?