My mesh freaks out when I rig it, i think because it's made of separate pieces
Did you check whether the mirror modifier is applied or not and if the armature modifier comes first in the modifiers tab of the object?

If there are any modifiers active except the armature modifier I would try to apply those first.

Also, you can change to weight painting mode and assign the bones manually to certain vertices. But you might know this already.