unexpected null instance

Godot Version

4.6.2

Question

Im creating a timer and the “time_left” is giving an error that says “Invalid access to property or key ‘time_left’ on a base object of type ‘null instance’.”

@onready var ttimerLeft = $Timer.time_left

Make sure your node is literally called “Timer” otherwise the node will not be found.

Also the variable name is ttimerLeft which might be a typo with two t’s at the start?

Also, when you access the value with @onready like this, you will get the value of time_left when it was accessed. Instead of creating a separate variable just use timer.time_left whenever you want to access it. It already has its own variable and using it as intended will cause less problems in the long run.