Need help changing the font of a GUI- not as simple as it seems (530178)

I want to change the GUI font for a little flappy bird clone-ish game i’m making. I’m stumped. This is in C#. This entire script also generates the endless “rocks”, as you would expect in this kind of game.

using UnityEngine;

public class Generate : MonoBehaviour
{
	public GameObject rocks;
	int score = 0;
	
	// Use this for initialization
	void Start()
	{
		InvokeRepeating("CreateObstacle", 1f, 1.3f);
	}
	
	// Update is called once per frame
	void OnGUI () 
	{
		GUI.color = Color.black;
		GUILayout.Label(" Score: " + score.ToString());
	}
	
	void CreateObstacle()
	{
				Instantiate (rocks);
				score++;
	}
}

Any ideas?

I can’t see in your code where you are trying to change the font. I think I’d start by using the code shown here:

That’s because i removed it when it wasn’t working. I’m looking for a new way of doing it, or just one that works.