Hello there. I spawn a cube in a moving object and attach to it. I check if the hit actor of the line trace is the Movable variable. If yes, set the Cube 's location in the center of the movable and then attach the Cube to the Movable. I tried both AttachActorToActor and AttachActorToCompoment nothing seemed to work.
Movable variable is a public variable of our character blueprint and set it as the moving object in defaults.