I looked in-game and cant seem to get the dimensions of the player's cameras (by cameras I mean VR cameras, since 3D requires two cameras I would need to find both of them). For this specific instance the cone of view and the minimum distance an object can be from the camera before not being rendered.
Specifically, my problem is that I don't want players to be able to just put their head in a wall and see everything. So when the camera is intersecting with an object it blacks out the screen. But I know how to code all of that already, my only issue is the one above.
Try this
local camera = workspace.CurrentCamera local playerView = camera.FieldOfView