Checking if a SWEP has hit a players head and giving back stripped weapons

I’ve been looking around and I can’t find a clear way to check if a SWEP has done damage to a players head. Any help is appreciated.

Also, I was looking for a way to give back a player there weapons after being stripped (they save on the ragdoll body of the player here).

rag.weapons = self:GetWeapons() -- Called within a function before being stripped.

for k, v in pairs(rag.weapons) do -- giving weapons back

v is returned as nil for me here and I don’t know why. Thanks.

when you strip the qeapons, all those gets removed, iterate trhought all weapons and store the class and clip in weapons table in your ragdoll, so you do Give and then GetWeapon(class):SetClip1(ammo)

Thanks, do you know any way to check if a SWEP has done damage to a certain hitgroup? Thanks

I thin dkmginfo has some info about that, or just use ScalePlayerDamage