-- Script_TelePort_1: Скрипт телепорта-передатчика N 1. -- (см., также, roamer55.ru)
-- --------------------------------- -- телепорт-приемник N 2 local tpr = game.Workspace.Room_TP.TP_2.TP_Receiver_2 -- ---------------------------------
local YesPress = false function Touch(hit) if YesPress == falsethen-- защита от "дребезга контактов" if hit then ifhit.Parent:FindFirstChild("Humanoid") then-- Humanoid local player = game.Players:GetPlayerFromCharacter(hit.Parent) if player then-- player
YesPress = true hit.Parent:moveTo(tpr.Position) -- перемещение в телепорт wait(1)
YesPress = false end end end end end