Not letting camera move through parts

Idk what to do and I have searched a lot but found just one video which was outdated. I need to make sure that the camera cannot zoom through or not let the camera go through a part which is either transparent or non colidable.

You know how ur camera can go past transparent parts or non colidable parts I’m trying to do the opposite and I don’t know how

1 Like