Movement of component goes server -> client but not client -> server.

Hi

This a multiplayer issue, basically, the movement of an object can be transmitted from Server to Client, but not from Client to Server.

This is the code:


I think it is very simple. “lastSeenComponentWithSphere” is the component returned from a rayTrace. Some photos of the execution:

The server player can click on the cube, and lift it. The small screen shows the client, that has replicated movement.

Now, the client side, can also click on the cube and move it, but it does not replicate on the server side:

Ive been with it for all day trying everything I could find… no result… any ideas what could be it?

You need to set it on the server, It’s an authoritative server model.
Do an authority check and if it’s the client then call a RPC that sets the variable with the connected notify on the server.
it will then trickle down to the client and anyone to who it is relevant to.