Adding spring arm and camera to the spectator pawn only works on server-side.

Hello guys, I hope that you are doing fine.

I am building a casual multiplayer game like fall guys. I want to implement the spectator just like fall guys. so I added an spring arm and a camera to the spectator. The problem is that this works only on the server side and not on the client.

When there is no spring arm and the camera, both server and client spawn the spectator pawn at the player location, and they can free roam the map. The problem is that when I add the spring arm and set “Hidden in game” property for the capsule collision in spectator pawn to false, I can see that the camera is on the spring arm for the server, but on the client nothing changes.

A would really appreciate any help.

P.S: I use “ChangeState(NAME_Spectating);” to spectate.