Invalid access to property or key 'global_position on base object of type 'Nil'

Not sure if this will fix it but try adding @onready to var target = waypoint1.

1 Like