The variable joystick isn't instantly ready, so at some point it's null variable, until get_node has finished the job. Try doing it like:
func _physics_process(delta): if joystick == null: return move.x = joystick.x move.z = joystick.y player_movement(delta)
undefined
willwill65pn
@willwill65pn