MultiplayerSpawner duplicates player objects

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By albertbuh

Hi everyone! I’m creating a small FPS game and ran into this problem: when I spawn my player, all weapon which he holds in hands are added twice in a mirror image. I add players using MultiplayerSpawner and CharacterBody creates correctly, but weapon duplicates for every player on server.

On the left side Server, Client on the right :
link to picture

Here is my github repo x)

I’m newbie in godot and I absolutely don’t know how to solve the problem. T_T

Godot version v4.0.2.stable.mono

:bust_in_silhouette: Reply From: albertbuh

The reason was that I load camera units of all players on every application. As a result I had as many cameras as there were players. I solve the problem by deleting cameras of players which are not authority, but to my mind there could be a better solution