Advertisement
1zxyuuki

Untitled

Oct 30th, 2024 (edited)
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. local TeleportService = game:GetService("TeleportService")
  2. local destinationGameId = 79962156072161
  3.  
  4. local function teleportAllPlayers()
  5. for _, player in pairs(game.Players:GetPlayers()) do
  6. TeleportService:Teleport(destinationGameId, player)
  7. end
  8. end
  9.  
  10. -- Example: Teleport all players when a specific event occurs
  11. -- You can replace this with any event or condition you want
  12. teleportAllPlayers()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement