How do I make a character teleport forward when the player clicks

What do I use to get those locations, I’ve tried looking, but I can’t find the required function.