hi, i'm making a memory game following this tutorial, he make a file to manage the game variable, and in this file he write this code:
extends Node
onready var Game = get_node("/root/Game")
var deck = Array()
var cardBack = preload("res://Assets/Sprite/card/card_back.png")
func _ready():
fillDeck()
dealDeck()
func fillDeck():
var i = 1
while i < 13:
deck.append(Card.new(i))
i = i + 1
func dealDeck():
Game.get_node('Grid').add_child(deck[0])
for him it works, but when i try to run it on my pc it doesn't work, it show this error:
Attempt to call function 'get_node' in base 'null instance' on a null instance.

How can I solve?