Hello! And welcome to my tutorial! Today I will be showing you how to make a proximity prompt teleport a player to a new location. So first make your proximity prompt under a part and add a Normal Script Under the Proximity Prompt It should look like this:
Now lets get scripting!
First we make the variables
local proximity = script.Parent
local Location = game.Workspace.Location -- put the part you want to teleport to here
Then, we add a function, like this
ProximityPrompt.Triggered:Connect(function(Player)
-- we will put stuff here in a second
end)
Then, we find the player that activated it and teleport them.
The way this tutorial was written was extremely hard to comprehend, given the poor formatting and repeated lines of code that people copy-pasting will unknowingly duplicate. And then their script will end up looking nothing like the end product.
You also should make it more clear there should be two parts, the Teleporter and the Location part.
If I wasn’t any wiser and just simply copy and pasted the lines without looking at what you said it should look like: