local teleport_table = {
location1 = Vector3.new(138.83343505859375, 22.557273864746094, -348.6353759765625), -- координаты для location1
location2 = Vector3.new(-9984.9453125, 22.233718872070312, -590.59765625) -- координаты для location2
}
local lp = game.Players.LocalPlayer
-- Функция для мгновенной телепортации
function instant_teleport(v)
if lp.Character and lp.Character:FindFirstChild('HumanoidRootPart') then
-- Устанавливаем позицию HumanoidRootPart напрямую
lp.Character.HumanoidRootPart.CFrame = CFrame.new(v)
end
end
-- Проверка PlaceId и телепортация в зависимости от места
if game.PlaceId == 8737899170 then
-- Мгновенная телепортация к location1
instant_teleport(teleport_table.location1)
elseif game.PlaceId == 16498369169 then
-- Мгновенная телепортация к location2
instant_teleport(teleport_table.location2)
end
To embed this project on your website, copy the following code and paste it into your website's HTML: