Weapon Clipping Through Wall

Hello everyone, i have a problem. How to make your arms move toward you when approaching the wall? Like in trepang2(- YouTube). I asked this question on the other forum, but these solutions didnt help.Some guys wrote about ik animations, but how to use them. Also one guy sent me this code, but didn’t explain what it does.