How can i make a character that the player can rotate to his bone?

Hi. I would like to create a custom poser but I don’t know how to rotate the character’s bone (p.s the player must have the ability to move the character’s bones). Can you help me?