How to get single player working with shared co op camera

Hi there, I am trying to get a single player to use the shared camera in my co-op game. The camera calculates the difference between the players and the shared camera zooms in and out and follows when players get close or far from each other. It works fine for 4, 3 and 2 players on screen, but I can’t seem to make it work when only one player is on screen

This is the part which calculates distance between players for. It’s the same for 3 and 2 players.

This sets the camera position and the zoom when players move close and away from each other.

This sets the center position for the camera. 3 and 2 players use the same thing.
Currently, 1 player only causes the camera to not move or zoom, and it does not follow the player. It would be very helpful to know how to solve this. Thank you