well when i enter the trigger it only takes the collider with it but not the player
using System.Collections.Generic;
using UnityEngine;
public class Respawn : MonoBehaviour
{
[SerializeField] private Transform player;
[SerializeField] private Transform respawnPoint;
void OnTriggerEnter(Collider player)
{
player.transform.position = respawnPoint.transform.position;
}
}