move the camera between the player and the mouse

Man!!! I was trying to fix it for hours!!! you are a genius!!
Do you think there’s a way to restrict how much the mouse can go away from the player?
Thanks for all the help!