Rigging a Bees wings

I am trying to animate a bee flying but I can’t rigg the armature to the wings with out the legs also moving , How do I make the bones just move the wings and not the legs ? the armature has just 4 bones 2 in the body and 2 wing bones no bones in the legs as I dont need to move the legs while its flying .

Have you tried looking into the Weight Painting?

Weight Painting controls how much of a mesh and to what extent is controlled by each bone. There are lots to tutorials about it. Just look it up and you’ll be fine :3