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