Armature messed up

Ok so I can make an armature for my character, but when I got to pose mode, parts of the model that werent assigned to the bone move too. The part I’m trying to assign isn’t even connected to the rest of the mesh.

Nevermind. After a LOT of messing around, I got it.