I am new to godot 4 and game dev in general, and I don't have much knowledge on programming, so I've been watching online tutorials to get a grip on how to do things, but I can't find a tutorial on how to transition between scenes in a room with multiple exits, so I wanted to ask about guides, advice, or just outright the code necessary for me to be able to do what I want to do.
Here's the code I am using to transition between a scene and another right now, and I want to say that I just copied this from DewWorm on youtube, so its not my original code!

I've seen a few comments in the youtube video I watched that said something along the lines of having to track the player and see which Area2D it went to, to somehow detect which scene to transform into but... I honestly have no idea on how to track the player, nor have I been able to find tutorials on how to do that.
And thank you everybody that decided to help me!

kuligs2 I am grateful to you for redirecting me to a good source but, at the same time, I feel really dumb for not finding this my self.
Hopefully my game dev journey is not going to continue involving more things that make me fell dumb but if I know myself... I am going to embarrass myself quite a few times before I am even able to build the alpha version of my game.

    RLObservr dont worry, most people ask dumb questions, and those get answered.. im more worried asking difficult questions because it might not have an answer