I wanna make a jetpack joyride clone but im having trouble with generating the obstacles

Godot Version

4.3

Question

Im trying to get the characters location but Im having trouble setting that up since if its a global variable since I wanna put it in the laser scene if I have to put it in a new auto load script then how would I get his location if its not linked to the character?