# Attached to socket components positioning wrong

**URL:** <https://forums.unrealengine.com/t/attached-to-socket-components-positioning-wrong/430893>\
**Category:** Character & Animation\
**Tags:** attach, socket-reference, attach-to-component, unreal-engine, construction-script, question\
**Created:** [August 3, 2018, 3:27pm UTC](https://forums.unrealengine.com/t/attached-to-socket-components-positioning-wrong/430893 "2018-08-03T15:27:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![needforgrib](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@needforgrib](https://forums.unrealengine.com/u/needforgrib)\
**Post date:** [August 3, 2018, 3:27pm UTC](https://forums.unrealengine.com/t/attached-to-socket-components-positioning-wrong/430893/1 "2018-08-03T15:27:29Z")

</div>

I don’t remember exactly when it happened, I lost this momemnt. I think when I migrated to 4.19 version from 4.16.  
All worked exaclty as expected, but one moment I noticed this weird behaviour.

I have a mesh and collision boxes, which I attach to mesh sockets by method “attach to” in construction script. I place all objects where i want them to be placed, but when I compile they takes random strange positions and rotations. And if I try to edit viewport element (move camera), this attached objects return to correct places.  
I don’t understand what’s going on, I’ve tried all transform rules: “keep world”, “keep relative” and even “snap to target” but it’s broken with all rules.

Here is a video how it looks [ue4 weird bug - YouTube](https://youtu.be/JSXonGlrbjI)

---

<div class="post-metadata">

**Author:** ![needforgrib](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@needforgrib](https://forums.unrealengine.com/u/needforgrib)\
**Post date:** [August 8, 2018, 1:05pm UTC](https://forums.unrealengine.com/t/attached-to-socket-components-positioning-wrong/430893/2 "2018-08-08T13:05:43Z")

</div>

I fixed it by migrate to 2.20.1
