Forced Shift Lock camera going through walls

Like so the camera will go through the walls when turning close enough to them. That being said indoor shootouts can be a bit of a pain and can result in frustration for everyone. How would be able to detect the wall and prevent the camera from going through it?

https://i.gyazo.com/17ff941dd3b5974920ed58c7384efb9b.mp4

I’m not sure about that but like I know that unfixable thing. That’s roblox’s issues and in everygame when you shiftlock and try to look close to walls it works so. Try to find in developer hub maybe

I think in order to fix that you have to make your own over-the-shoulder cera like jailbreak does.

Yea ^. Most likely you will need to create your own over-the-shoulder camera system. Then you will have to use raycasting to send a ray out of the back of the camera. You can use the hit position on the ray to position the camera slightly in front of whatever object is behind it.