I created a project where I instantiate some domino pieces, position them on the screen and set the appropriate texture.
I added two pieces to the scene manually and instantiated dynamically all the combination to see if they work.
Everything worked fine until I replaced my local var sprite: Sprite = $Sprite
with a onready var sprite: Sprite = $Sprite
Not event initializing it in the func _ready()
worked.
The two pieces I added manually worked regardless, but the dynamic ones return null
for the sprite when using load("res://Piece.tscn").instance()
Here's the project: https://drive.google.com/file/d/1ymk5LyABpRFvuuS2O23NGG67xw9Enz6C/view?usp=sharing