How to get the player to teleport to the collision point of a projectile?

How do I get the player index?