Ontriggerenter doesnt work

hello.

I have a waypoint system but i have a problem.
in my checkpoint for my waypoint system i have an box collider with an is trigger.
But whenever my player collides with it it got stuck. Normally you should just can walk trough the box collider.

My code that is on the box collider is this.

using UnityEngine;
using System.Collections;

public class Respawn : MonoBehaviour {
  
  
    public Transform SpawnPoint;
  
    public GameObject player;
  
    void  OnTriggerEnter(Collider other)
    {
        if(other.gameObject.tag == "Player")
        {
            player.transform.position = SpawnPoint.position;
          
        }
      
    }
}

can somebody help

my player also has a rigidbody attached to it

maybe your other script that modifies player’s position is causing your problem

agree with jaasso, you may wanna double check the "SpawnPoint
"

i fixed it needed to delete the object and readd it again. now it works for some reason