Teleportation Pad

Whenever player touches Part1 it'll teleport the player to Part2.

by Klxfe

Author Avatar

Whenever player touches a Part1 it'll teleport the player to Part2.

1. Create 2 different parts into Workspace 2. Name the parts 'Part1' and 'Part2' 3. Insert 'Script' into either one of the parts.

img|30x25



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)

View in-game to comment, award, and more!