local teleportPart = script.Parent
local destination = workspace:FindFirstChild("DestinationPart")
teleportPart.Touched:Connect(function(hit)
local character = hit.Parent
local humanoid = character:FindFirstChild("Humanoid")
if humanoid and destination then
character:MoveTo(destination.Position)
end
end)local debounce = {}
teleportPart.Touched:Connect(function(hit)
local character = hit.Parent
local humanoid = character:FindFirstChild("Humanoid")
if humanoid and not debounce[character] then
debounce[character] = true
character:MoveTo(destination.Position)
wait(1)
debounce[character] = nil
end
end)local sound = teleportPart:FindFirstChild("Sound")
if sound then
sound:Play()
endlocal prompt = script.Parent.ProximityPrompt
local destination = workspace.DestinationPart
prompt.Triggered:Connect(function(player)
local character = player.Character
if character then
character:MoveTo(destination.Position)
end
end)destination.Position + Vector3.new(0, 10, 0)