When instantiating enemies, my player characterbody3d changes position

Godot 4.2.1
3D

Hello there!

I would like to ask some help with my Godot project - i’m a newbie and i can’t see why my code was okay then why it behaves in another way now.
The problem is that when the level loads, my player unit should be at the origo and stay there until i select it and click to a tartget position.

But when my enemy units are instantiated, my player unit suddenly at a different position and goes back to the origo point until the last enemy is instantiated.

I can’t see why this is happening and it really drives me crazy now.
I post my codes and nodes.

Thank you very much for your help in advance! :slightly_smiling_face:

image