Identifier "Global" not declared in the current scope.
`extends CharacterBody3D
var speed = 2
var accel = 10
@onready var nav: NavigationAgent3D = $NavigationAgent3D
func _physics_process(delta):
var direction = Vector3()
**nav.target_position = Global.target.global_position**
direction = nav.get_next_path_position() - global_position
direction = direction.normalized()
velocity = velocity.lerp(direction * speed , accel * delta)
move_and_slide()`
The line in bold is where the error keeps happening. I hope someone can help fix the error :]