Buttons don't work when I change the scene

PLEASE HELP!

Whenever I use get_tree().change_scene_to_file() to change scene it changes scene but then when I try to click a button in the new scene it doesn’t work.

Note: When I make a button that changes the scene the button works but when I do it in process delta it the buttons don’t work.

Please figure out why as its for a game jam that ends tomorrow.

I don’t know what the reason for this behavior is, but there is a workaround.
Bind the buttons not through the editor interface, but in the _ready function of the scene
button.pressed.connect(func_on_button_pressed)

1 Like

Its okay i fixed it already sorry for the hassle.
It was just a mistake with checking a variable in autoload.