I remember seeing an old post on the Roblox Wiki about a top-down game. The game is open-sourced and when I checked it out I found nothing that makes parts in the camera’s way invisible. I removed every script and the camera still works.
Screenshot of camera making parts invisible:
There’s plenty of ways to do this but I don’t want to reinvent the wheel.
If you click on the StarterPlayer object in the game explorer in studio and scroll down you will see the property “DevCameraOcclusionMode” mentioned above. Change it from Zoom to Invisicam and it will produce the desired effect.
You can cast a ray from the camera’s position in the direction of your HumanoidRootPart and just make all of the parts that are in-between those points invisible.