How do I lock the mouse and make it so the player's body moves with it?

  • Hide the mouse icon. You can do that by using an invisible mouse icon.
  • Add a mouse icon gui you want to use and keep it at center of the screen.
  • And now turn around the character with the mouse
  • See: How to make character move with mouse?

There might be better solutions too!