how do i make my cube go down the y axis?

ive been trying to make a destruction effect but the collision doesnt work
this is code:

       void OnTriggerEnter(Collider other)
    {
        if (other.gameObject.CompareTag("Player"))
        {
            transform.position = new Vector3(0,-5,0);

            Debug.Log ("yes");
        }
    }

help?

note: I’m an amateur at coding

@CutTheChitChat123 so you what you have down is that you have placed the object at position -5 on y-axis.

This is a just a position change which is permanent.If you want to make it fall on the y-axis use this code :-

 public Rigidbody obj;
    public float speed;
    private void OnTrigerEnter(Collider other)
    {
        if (other.gameObject.CompareTag("Player"))
        {
            obj.velocity = new Vector3(0f, speed, 0f);
        }
    }