Need help with rigging lego character

i tried rigging this lego harry figur for my game, rig and all i think did fine but this is happening → https://ibb.co/x8ph1x1, im not that new to blender but still a beginner with modelling, animating and rigging stuff so sorry, if this is maybe something very easy!

thx in advance image

Looks like the skin weights of the bones are not properly set. Google blender skin weighting to learn how to fix.

if you have multiple pieces on top of each other,
i would suggest bind / work on them one by one,
hide the others first so you see which piece is not working correctly.

im not very familiar with lego animation rigs but i would imagine some (if not all)
pieces work better with just setting parent to appropriate bones,
instead of weight binding-
since plastic pieces of lego dont really deform they only rotate.

though my instinct tells me this is more of a structure (parent relations)
problem with your bones (head bone twisted like that after setting something up)
if something suddenly pops out of place after you set parent,
try 1) set parent - relative
2) clear scale, rotate on the objects before setting it up. (ctrl-A)

sorry this is a mess just a couple of things you can try.