How to write a script which will switch the scene after the character reached a location?

I have a game, which has multiple scene. what i think is, when the character to go to a location, and the scene would change, and the character will spawn in the new scene, how do i write script?

create a boxcollider, scale it and place at the end.
check isTrigger in Inspector to true.
create a script attach it to the boxcollider.

here is untested code:

using UnityEngine;
using System.Collections;

public class EndOfLevel: MonoBehaviour {
    public string Level = "Level 0";

    void OnTriggerEnter(Collider other) {
        if (other.gameObject.CompareTag("Player"))


hope it helps!