I think I know what error you’re getting, or at least I see an error still present. In later versions of Unity 5 they stopped using “Application.LoadLevel()” and now use a “SceneManager”.
So at the very top you need to use this namespace:
using UnityEngine.SceneManagement;
Then to load a scene you write:
SceneManager.LoadScene(1);
With GetComponent you need to specify what you’re getting. I assume the "text" elements in your script above was stripped int he comment but if not I'll specify. A game object can have multiple components on them.Â
Sometimes this is not needed though as Unity will often do this for you in the background. Commonly used components will be cached for you like this in the background.