Button doesn't work

Godot Version

Godot V4.6

Question

I'm trying to make a start screen but the start button works the first time but when you go back to it when you die it doesn't work anymore

Heres the code and scene tree

func _on_button_pressed() -> void:
	get_tree().change_scene_to_file("res://Scenes/main.tscn")

I just found the fix, its because it kept spam sending me back to the start screen as I never reset the time limit