Another weird error

Godot Version

4.5.1

Question

func _on_area_2d_body_entered(_body):
$“../../AnimatedSprite2D”.play()
$“../../AudioStreamPlayer”.stop()
$“../../AudioStreamPlayer2”.stop()
await get_tree().create_timer(2.5).timeout
get_tree().change_scene_to_file(“res://scenes/bossintro1.tscn”)

This isn’t working on Web export and I have no idea why. Previous scene changes worked, and it worked in previous versions. How on earth am I supposed to fix this?

Do you get any errors in the web console? You can find it by pressing F12 in most web browsers

Should this not be .timeout()?

i tried it again and it worked randomly???