Keeping weapon at the back of character at certain distance

Hello,
I currently am using multi-parent constraint to make the weapon in my character’s hand to go back of my character. This is working perfectly fine. But when I move, the weapon goes through my character. So what I am trying to do is to keep the weapon at back of character not go through my character. What I want to achieve is much like how the weapon follows the player like in “Genshin Impact”. I have tried adding multi-rotation/position constraint but they didn’t help at all. I also have tried making an empty gameobject and attaching a script that had a simple follow and lookAt player but still couldn’t achieve what I wanted. So I am looking for some other ways I can achieve this. Thanks in advance.

Didn’t quite get the problem. Does the weapon stays in place? Does the weapon walks with your character?
If you’re saying that the weapon is “attaching” to the back of your character as expected, I’m guessing the weapon “moves” strangely with your character, which can be caused by your weapon’s place pivot gameObject being a child of your character’s rig. Put your weapon’s place pivot gameObject outside of the rig and that should do the trick.