I found my problem. I wrote the script before themove()
methods. I also needed the Is_move_and_slide_on_floor()
method.
if is_move_and_slide_on_floor():
var collide = get_move_and_slide_colliders()
for body in collide:
if body.get_name() == "Exit":
get_node("/root/Square_Game").queue_free()
get_tree().change_scene("res://Level_select.tscn")