rotating half of armature

hi i need help roatating only the top half of my armature for a fps but i want to have a full body unlike the other fps who just have arms so i need help makeing a script that matches up the animation with the mouse ok thanks