In the script of Main scene (main.gd) I want to create instance of another scene (player scene), but player also have a player.gd script attached to player scene.
Problem:
In player scene script (player.gd), there are so many paths ($this, $that, $those, etc.), if I run player scene alone (by pressing F6) it runs correctly with all of those paths, but if Run the main scene (by pressing F5), those paths that are working in player scene are all NULL/nil.
Why? and how can I have some separated scenes with their own scripts and paths, and I just want to load that player inside my main scene.