How to stop the camera from moving through parts?

How can I stop the player from zooming their camera out thru a transparent part? I’ve tried adding invisible meshes and decals but this no longer works in new places. It works in old places tho. Is this a bug? I want to make it impossible to zoom out thru transparent parts so that players can’t see the “cardboards” hidden behind the part.
RobloxScreenShot20221217_195022592

1 Like

@realOmlet

  1. Create a Part with the ForceField material

  2. Set the Transparency to -inf (or -999999999999999999999999999999999)

5 Likes

This doesn’t solve my issue. The player can still zoom out through the forcefield.

I made sure to test it before Posting, worked for me

1 Like

The player can freely zoom thru that part tho :thinking:

Have you tried to change the setting under StarterPlayer in the DevCameraOcclusionMode?

1 Like

It’s set to zoom. Inviscam makes parts slightly transparent if moved thru, no? I just want zoom to work on all parts.

1 Like

Yes you’re right, im not sure of a workaround, i haven’t experienced this yet.

1 Like

Did you enable CanCollide? It worked for me only when i enabled it.

CanCollide was on, since it was meant to be an inaccessible place. I solved this by keeping a legacy experience where this still works and always upload my assets to it so that I can add transparent decals on top of the meshpart. In the final game I added the city template (you can see it on my boblos profile)