So, im trying to make a camera that will show all the players at once.
Say for example, all the players are spread out, the camera will try to accomadate for that.
BTW this is a 2-d style game
I haven't made it yet, but im thinking that a script should find the average of the x and y coordinates of all player humanoidrootparts, then set the camera to that average point.
But im still not sure how to determine the z coordinate.
I could keep it sationary and far so that i wont have to worry about the camera being too close in some occations, but i would preffer my camera to zoom in and out when players are close together and far away respectively.
is there any way to help determine the z axis, and is my logic for the x and y coordinates right?
thanks in advance.
