Negative Score

Hi !
I need a help. I make a score for the game,but when I finish make a scripts and play it, the score is not from 0 but from -4.

Here is the scripts :

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");

      
    }
}

Can anyone help to solve this problem?

Thank You
-Samuel-

is because your player’s z axis is negative.

one thing i can think of is the player is parent of some other object which has z -4
you can use player.localPosition