Identifier "player" not declared in the current scope

version 4.2/latest
I’m currently following Branno’s vampire survival clone tutorial and am on the second video about creating the enemy ai (https://www.youtube.com/watch?v=BAUn-lGBXMw&list=PLtosjGHWDab682nfZ1f6JSQ1cjap7Ieeb&index=3). As shown in the screen shot bellow I have declared it as a variable (I think) and when I run the game the debug window crashes.
any help would be greatly apricated

you called it “play” in the definition. Change it to “player” in Line 6:

@onready var player = ...