Want to create a loading bar with tween,i follow a godot3.5 tutorial,but it looks like something wrong in godot4

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By NITEIP

extends CanvasLayer

@onready var color_rect = $ColorRect

func change_scene(path:String):
var tween := create_tween()
tween.tween_callback(color_rect,“show”)
tween.tween_callback(get_tree(),“change_scene”,[path])
tween.tween_callback(color_rect,“hide”)

How can i fix it? Thanks.