How do I make a teleport tool that makes you teleport to a part that you clicked

How do I make a teleporting tool that allows you to teleport to a part that you clicked on? So like whenever you click on a part, it teleports you to that part. Are there any tutorials that would teach me how to make it?

1 Like

You can do this by using Mouse | Roblox Creator Documentation which returns the part the mouse is hovering over.

You can detect when the mouse is clicked by using Tool | Roblox Creator Documentation

Then to position the player you can change the .Position property of the HumanoidRootPart to the Position of the part that is found.

2 Likes

There are multiple different ways. You could use a proximity prompt, an onClick or mousebutton1click script. It really depends on what you want to do.

1 Like