Thickduck_UntitledCubeGame/score.cs
using UnityEngine;
using UnityEngine.UI; 

public class score : MonoBehaviour
{
    public Transform player;
    public Text scoreText; 

    // Update is called once per frame
    void Update()
    {
        scoreText.text = player.position.z.ToString("0"); 
    }
}
// an exceptionally useful comment here. 