How do I replicate camera movement

I followed a tutorial of how to make my character head follow me camera, but when i try to play it in multiplayer, only the clint seem to only do it while the server isnt.

heres a picture of the code:
image



4

and heres the tutoial I followed:
How to make Head turn camera - thirdperson (youtube.com)