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

Is that code supposed to get it to teleport the player? Because it isn’t doing anything.