I had a problem with variable Player being null after i had changed
onready var Player = get_node("/root/Level1/Player")
to:
onready var Player = Global.Player
I compared my scripts files to instructor’s and they were the same.
The problem was caused by the wrong order of nodes. The Player variable was not initialized because I had placed the Player node after the Guards node.
The keyword ‘onready’ was a little bit misleading.