Colission thing

func _on_area_2d_body_entered(body):
if body == $CharacterBody2D:
$AnimatedSprite2D.hide()
$AnimatedSprite2D/Area2D/CollisionShape2D.disabled = true
score+=100
$CharacterBody2D/Camera2D/score.text = str(score)
E 0:00:03:0169 lvl_1.gd:18 @ _on_area_2d_body_entered(): Can’t change this state while flushing queries. Use call_deferred() or set_deferred() to change monitoring state instead.
<C++ Error> Condition “area->get_space() && flushing_queries” is true.
<C++ Source> servers/physics_2d/godot_physics_server_2d.cpp:355 @ area_set_shape_disabled()
lvl_1.gd:18 @ _on_area_2d_body_entered()

Do what the error tells you to do.

$AnimatedSprite2D/Area2D/CollisionShape2D.set_deferred("disabled", true)