Multiplayer with difference character

Godot Version

4.2

Question

i want to add different character spawning but its not work
extends Node2D

var peer = ENetMultiplayerPeer.new()
@export var player_scene: PackedScene
@export var player2: PackedScene
@onready var label = $Label
var ip = IP.get_local_addresses()
var p1
var p2

func _ready():
label.text = ip[3]
p1 = preload(“res://scene/player.tscn”)
p2 = preload(“res://scene/player2.tscn”)

func _on_host_pressed():
peer.create_server(135)
multiplayer.multiplayer_peer = peer
multiplayer.peer_connected.connect(_add_player)
_add_player()
$Host.visible = false
$Join.visible = false
$LineEdit.visible = false

func _add_player(id=1):
var player = player_scene.instantiate()
player.name = str(id)
if id == 1:
var instance = p1.instantiate()
player.add_child(instance)
else:
var instance = p2.instantiate()
player.add_child(instance)
call_deferred(“add_child”, player)

func _on_join_pressed():
peer.create_client(“localhost”, 135)
multiplayer.multiplayer_peer = peer
$Host.visible = false
$Join.visible = false
$LineEdit.visible = false

func _on_line_edit_text_submitted(new_text):
peer.create_client(new_text, 135)
multiplayer.multiplayer_peer = peer
$Host.visible = false
$Join.visible = false
$LineEdit.visible = false
E 0:00:12:0912 _send_sync: Condition “!sync || !sync->get_replication_config_ptr() || !_has_authority(sync)” is true. Continuing.
<C++ Source> modules/multiplayer/scene_replication_interface.cpp:812 @ _send_sync()