So, I have been creating an online connection system through steam subsystem, I have managed to get a friend who was not in the same local network as me to connect, but for example the enemies when they see my friend go into chase the player but only chase the host (me), I have also made a running mechanic and it only works for me my friend when he presses the run button does not increase his speed, I have tried to fix this with tutorials but I have had these problems for about 2 months and I do not know what to do, help please.
This is the running code
and this is the code for when an enemy goes after the player
Thank you very much