One of the 50 questions in this topic
Weight painting is essential to control how the model deforms when the armature moves.