Make Everything in the Camera's Way Invisible?

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:
image

There’s plenty of ways to do this but I don’t want to reinvent the wheel.

1 Like

that’s camera invisicam

2 Likes

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.

1 Like

Why does this error show when I try to set?

The current identity (2) cannot setDevCameraOcclusionMode (lacking permission 5)

local script in starterplayerscripts:

local plr = game.Players.LocalPlayer

plr.DevCameraOcclusionMode = 1

maybe because only the server can set it?

Yea it turns out the server can only set it. Is there any way to change the transparency of the invisible parts or is it hard-coded at 0.5?

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.

Look through the core scripts and try to find where it makes the parts transparent.

1 Like