Hello,
The correct code would look like
.
As you can see, we are using a cast on the Hit Component, in order to get a static mesh component( a static mesh actor has an SM component inside), and then we just set the static mesh using a mesh from the drop-down menu or variable.
Enjoy