I found a major issue with that code, the ID is all over the place. The trick to fix it is having the player script assign player = name.to_int() on _ready, that way it’s the same in all peers.

This replaces player = id on add_player on the level script.