Pro1234jgvf_YT

Teleport players Script (TeleportService)

Oct 8th, 2021 (edited)
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.40 KB | None | 0 0
  1. local telePart = script.Parent
  2.  
  3. local TeleportService = game:GetService("TeleportService")
  4.  
  5. local placeID = 7139906808
  6.  
  7. local canTeleport = true
  8.  
  9. local function otherGame(otherPart)
  10.     local player = game.Players:FindFirstChild(otherPart.Parent.Name)
  11.     if player and canTeleport then
  12.         canTeleport = false
  13.         TeleportService:Teleport(placeID, player)
  14.     end
  15. end
  16.  
  17. telePart.Touched:Connect(otherGame)
Add Comment
Please, Sign In to add comment