The physical ball client also does not move in the direction we are looking at.

The physical ball can move in the direction we look at on the server as we wish. However, on the client screen, it moves according to the position it spawned in. In other words, when we look at the ball from the right and press W, the ball moves to the right. How can I fix this?. Video


I think the problem is that you are taking camera’s rotation, but it does not replicate to the server. Use controller rotation instead.