Attempt to call function 'get_children' in base 'null instance' on a null instance.

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

I looked for so long but couldn’t find the issue.I used the same code in another scene and it worked.That scene’s only diffrence is children count.This is the code:

func check_end():

for i in $Spikes.getchildren()

if i.isingroup(“spike”):


do a better search, this error is very common, i answered a similar question a few days ago on this very Q&A

Andrea | 2021-03-22 12:59

:bust_in_silhouette: Reply From: whiteshampoo

$Spikes does not exist. At least not with that name/path