GigaOrts

Places

Jul 27th, 2025
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.29 KB | None | 0 0
  1. local TeleportService = game:GetService("TeleportService")
  2. local placeID = 0 --номер плейса, куда переходим
  3.  
  4. function onTouched(hit)
  5.     local player = game.Players:GetPlayerFromCharacter(hit.Parent)
  6.     if player then
  7.         TeleportService:Teleport(placeID, player)
  8.     end
  9. end
  10.  
Advertisement
Add Comment
Please, Sign In to add comment