Noob. I usually can do things my self, but cannot find an answer to this.
I am following this tutorial:
It has no bones. I added a child in the player character, attached it to the socket, and added the reference to the socket in the construction script:
When I play it, the gun does not follow the main character when moving. It stays in the start position.