The Error is (Error parsing expression, misplaced: Built-In Type) Please answer

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

extends KinematicBody

onready var player = $“…/…/Player”
onready var nav = get_parent()
var path =
var path_node = 0
var speed = 10

func _ready():
pass

func _physics_process(delta):
if path_node<path.size():
var direction=(path[path_node]-global_transform.origin)
if direction.length()<1 :
path_node+=1
else:
move_and_slide(direction.normalized()*speed,Vector3)
pass

:bust_in_silhouette: Reply From: jgodfrey

The problem is here:

move_and_slide(direction.normalized()*speed,Vector3)

Specifically, that Vector3 should (probably) be Vector3.UP