How to fix the "Invalid call. Nonexistent function 'change_Scene' in base 'SceneTree" error?

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

I made this code:

extends Button
func _pressed():
	get_tree().change_Scene("res://main.tscn")

And when i was testing it, the game dont open and the console show this message:

Invalid call. Nonexistent function 'change_Scene' in base 'SceneTree'

Is there a way to fix it? I am new to godot, i dont know how to code some things.

:bust_in_silhouette: Reply From: jgodfrey

change_Scene should be change_scene

notice the lower case s above…