#How to teleport player place to place?
1 messages · Page 1 of 1 (latest)
** You are now Level 1! **
with teleport service or just moving the player from one place to another?
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
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
Fixed