โ† Back to all scripts

Teleport to Place

Teleport a player to another Roblox Place ID. Works for portals and multiplace games.

SystemsBeginnerScript inside Part
teleport-to-place.lua
-- Teleport to Place
local TeleportService = game:GetService("TeleportService")
local PLACE_ID = 0000000000
local debounces = {}

script.Parent.Touched:Connect(function(hit)
    local player = game.Players:GetPlayerFromCharacter(hit.Parent)
    if not player or debounces[player.UserId] then return end
    debounces[player.UserId] = true
    local ok, err = pcall(function()
        TeleportService:Teleport(PLACE_ID, player)
    end)
    if not ok then
        warn("Teleport failed: " .. err)
        debounces[player.UserId] = nil
    end
end)
Related scripts in Systems
Basic Round SystemIntermediate โ†’Checkpoint SystemBeginner โ†’Day/Night CycleBeginner โ†’
Something broken or not working?
๐Ÿ”ง Try the AI Script Fixer โ†’