Scene Transition Error (pls help)

Godot Version

4.3

Question

Hello! So I’ve been following this tutorial https://www.youtube.com/watch?v=sKqtCc_HykM&t=627s to try and transition from scene to scene but I keep having error on the scene manager, on the line player = from.player i got the error ``Invalid access to property or key ‘player’ on a base object of type ‘Node2D’, and when i try and run the scene the player just freezes in the collision shape. I keep rechecking the tutorial but nada

This is the script for the scene manager:

I’m really sorry but does anybody know what I need to do, thank you for anyone willing to help!

How are you calling this change_scene function? What does that scene tree look like? It would seem the supplied ‘from’ is only a Node2D without a player variable, maybe no script attached at all.