how do I fix this error: "Trying to assign value of type 'Node' to a variable of type 'Node2D"
below is the code.

extends Node2D

@export var world_speed = 300

@onready var moving_environment = $"/root/world/Environment/Moving"

func _physics_process(delta):
moving_environment.position.x -= world_speed * delta

Hi there, is this the entire code? Does it say what line it's referring to? Btw, I removed the other duplicate thread.