Answers said you must print reload curret scene to see the error . My problem is how.Its not allowing me to print a function .
Also this is the code if u wanna know
func onRestartButton_pressed():
$RestButton.frame = 1
yield(gettree().createtimer(0.2),"timeout")
gettree().reloadcurrent_scene()