Node Reference completely broken

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Shazelz

Every time I try to reference a node in this one script I get the error

Invalid set index 'text' (on base: 'null instance') with value of type 'string'.

and the strange thing is that this has never happened before and the script has been working for almost 4 weeks now with no issues and one day I start up Godot and it just won’t stop giving me that error but if I try to reference things in any other scripts it does it perfectly fine, and I have checked multiple times there is no spelling errors or any errors on my part to the best of my knowledgedge

well, just yesterday, I also run in to a couple of annoying “null instance”, turns out the node or rather scene I was preloading got corrupted. (there was a power outage so that might be the reason)

Although It’s probably not the case for you, but a bit more context, node structure or code snippet would help to diagnose the issue.

bloodsign | 2021-02-18 19:17

onready var animationPlayer = $AnimationPlayer
animationPlayer.play("Bounce")

this is the main thing I am having the problem with I did leave Godot open for a long period of time though I don’t think that would do anything

Shazelz | 2021-02-18 20:55