Hello, im trying to add aiming down the sight with my gun in my 3d fps and i keep getting the error

Godot Version

Replace this line with your Godot version

Question

Ask your question here! Try to give as many details as possible.

If you share code, please wrap it inside three backticks or replace the code in the next block:

extends Node3D


@export var default_position : Vector3
@export var ads_position : Vector3
@export var ads_acceleration : float = 0.3
@export var default_fov : float = 75
@export var ads_fov : float = 75
@export var camera_3d : Camera3D

func _ready():
	default_fov = camera_3d.fov
	default_position = camera_3d.position
	ads_fov = camera_3d.fov
	ads_position = camera_3d.position

func _process(_delta):
	if Input.is_action_just_pressed("ads"):
		transform.origin = transform.origin.lerp(ads_position, ads_acceleration)
		Camera3D.fov = lerp(Camera3D.fov, ads_fov, ads_acceleration)
	else:
		transform.origin = transform.origin.lerp(default_position, ads_acceleration)
		Camera3D.fov = lerp(Camera3D.fov, default_fov, ads_acceleration)

What is “the error”?