SSB-like 2d camera?

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    2d shifting camera, similar to that of Super Smash Bros.
  2. What is the issue? Include screenshots / videos if possible!
    How to identify the locations of the root parts of all players and take the average (centering camera based on the locations of all the players)
  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I don’t know where to start, but looking it up hasn’t got me anywhere except for some words like raycasting, but idk.