Cursor world location on network

Hello,

I am trying to replicate the cursor location to the server. I wish to spawn actor where the mouse cursor is. The spawn working ( and replicating ) properly as long as I use a transform relate to any object in the game. As soon as I set the mouse location ( get hit result by channel ) and make it a transform, it stops replicating - and spawn it on client.

Any help would be amazing!

get the location from the hit result and send it as an input in a ExecuteOnServer custom event and spawn the actor there

Thank you for the quick reply - I will try it shortly.