Hi, take a look at my script;
NOTES:
First you need to figure out positions of players, and get an extreme left, and extreme right position of players.
Same with top/down.
Left say, we have 4 players. Maybe PLAYER 3 is on the most left, that is OUR min_x value.
Values -100 / +100 are the safe margins, so the characters are not exactly at the edge of viewport (you can remove it or change it to any other value)
Last condition is setting a scale. As you can see, my layout is 640x360 px.
"oczko" is an invisible eye/camera. It has the "Scroll to" behaviour.
Don't hasitate to ask, if it's not clear enought.
Cheers!