How to make camera follow mouse but with a deadzone

I want the camera to follow the mouse while in first person, but a dead zone that stops the camera after the mouse moves to far, I’ve seen other attempts at this but i need mine to be smooth, meaning if a mobile player clicks on they’re screen it would move smoothly towards the position, same with mouse input too,

1 Like