Attaching an Item to a character

Hello there,

I tried this great and streight forward tutorial:

I am having a problem,the gun is in its place and looking great but when I move the character he starts moving in the total opposite direction. When I delete or unplug the code, the cahracter moves normally again. Any clue why is it affecting the the movement direction when nothing in the code has anything to do with movement?

Try to disable the collision of this weapon. Go to the Gun BP and look into its components. Disable all collision in the different components (maybe you only have the mesh, so you would need to disable its collision).

Thank you so much, that solved it.