My RayCast2D is giving me a null instance

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

Everytime I try to use my RayCast2D I keep getting this error

Attempt to call function ‘is_colliding’ in base ‘null instance’ on a null instance

here’s my code

func smooth_move(delta):
# MOVEMENT
if $RayCast2D.is_colliding():
	position = last_position
	target_position = last_position

And here’s my scene
https://drive.google.com/drive/folders/1Fb5Jja5cdXaOxtMVDBdE2OLLf8IJYzbW?usp=sharing

:bust_in_silhouette: Reply From: 12bits

Stupid mistake, script was attached to the wrong scene, causing the error of not being able to find the node.