Projectile imbeds

Hello, I’m a bit clueless on how to make projectile imbed (stick) into a unit after collision. I understand that the attach script is here, but it doesn’t seem to work for me.