```lua
local part = script.Parent -- Ссылка на парт
local npcName = "ИмяВашегоNPC" -- Укажите имя NPC
local teleportPosition =
Vector3.new (0, 10, 0) -- Укажите координаты, куда телепортировать NPC
local function onTouch(other)
local character = other.Parent
local humanoid = character:FindFirstChildOfClass("Humanoid")
if humanoid then
local npc = workspace:FindFirstChild(npcName)
if npc then
npc:SetPrimaryPartCFrame(
CFrame.new (teleportPosition)) -- Телепортация NPC
end
end
end
part.Touched:Connect(onTouch)
```