Set object on front of the player

I have problem with some Math calculating. I would like to attach object on the front of Player. But when I attach it, object show randomly. Sometimes on front, other time on the left etc.
I will be grateful for any clues.

You could do it the easy way, make a socket on the chest or hips or whatever, offset it from the body, on that last Attach, put the socket name. Profit.