#How to teleport player place to place?

1 messages · Page 1 of 1 (latest)

copper shuttle
#

Need script which teleports player example from place 1 to place2. Please help me because i need it for my project

sonic pollenBOT
#

studio** You are now Level 1! **studio

plucky bobcat
#

with teleport service or just moving the player from one place to another?

west wolf
#
local teleportPad = script.Parent
local destination = workspace:WaitForChild("Destination")

teleportPad.Touched:Connect(function(hit)
    local character = hit.Parent
    if not character or not character:IsA("Model") then return end

    local humanoid = character:FindFirstChildOfClass("Humanoid")
    if not humanoid then return end

    local player = game.Players:GetPlayerFromCharacter(character)
    if player then
        character:MoveTo(destination.Position)
    end
end)

Place this script inside a part then create a Destination part that will contain the destination of your teleport

dreamy abyss
#

This is going to yield an error if it’s not a player

#

“It” being the thing that touched the pad

#

Before getting the player check if it’s even a player that touched the pad @plucky bobcat

west wolf
#

Fixed