1. Create 2 different parts into Workspace 2. Name the parts 'Part1' and 'Part2' 3. Insert 'Script' into either one of the parts.
local CurrentLocation = script.Parent
local Destination = game.Workspace.Part2
-- (Optional), You can create local variable for each part.
CurrentLocation.Touched:Connect(function(Touch)
-- Touched function.
if Touch.Parent:FindFirstChild("HumanoidRootPart") then
-- Checks if the touched part parent contains 'HumanoidRootPart'
-- and if it does then this line of code will run.
Touch.Parent:FindFirstChild("HumanoidRootPart").CFrame = Destination.CFrame + Vector3.new(0,3,0)
-- This teleports the player to the destination.
end
end)