Errors on movement when use AttachToComponent

Hello!

I’m trying to get an object attached to a socket, when doing this the character’s movements are wrong.
I have seen many tutorials and I do not see anything other than what I do.
Someone knows what can occur?

Image on Begin Play to test.

I just pressing the movement arrows and the character “shoots” with the object attached. The object is attached to head of mannequin.

[]

Thank you very much,

A greeting!