Pingu0427 I tried alternative codes with get_node() but same error occured. The script belongs to 'Player'. Please help.
Toxe Pingu0427 Run your game and in the Scene tab on the left switch to "Remote", find your Player in the scene tree and check if your HPbar node actually exists at runtime.