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.


local CurrentLocation = script.Parent
local Destination = game.Workspace.Part2
-- (Optional), You can create local variable for each part.

-- 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 +,3,0)
-- This teleports the player to the destination.



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