Sniper Specific Number Zoom

Hello Everyone,

So I have followed a tutorial to create a sniper zoom with mats and everything, Now I am working on mouse scrolling in and out to zoom in and out.

I have managed to do that with a tiny problem, I can keep zooming in forever and I can zoom out forever. I want to stop the camera from zooming in and out at a specific given number.

Don’t delete it , answer it yourself and accept the answer. My advice is that you clamp the number. I would also recommend using FoV instead.

Never mind I figured it out, how can I delete this question?

Yup I added clamp and it did it for me