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

I have this so far.