Camera System Question

I was wondering what the best route would go to make a camera system similar to this game:

Basics of how it seems to work:

  • Mouse is locked to your character
  • Mouse move rotates the camera around your character

The system should also lock the Y axis to a certain degree so it can’t rotate under/over your character.
How would I go about accomplishing something like this?

You can set the mouse behavior to LockCenter using UserInputService.MouseBehavior and make the cursor invisible using UserInputService.MouseIconEnabled

Already tried this. It doesn’t rotate around your character like the example. It literally locks you in place as far as your camera goes.