Advertisement
Msizz

Untitled

Oct 19th, 2023
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. local TeleportService = game:GetService("TeleportService")
  2. local PlaceId = 13772394625 -- Replace this with the PlaceId of the game you want to teleport to
  3. local CodeToRun = "print('Hello from the other game!')" -- Replace this with the code you want to run in the other game
  4.  
  5. function TeleportAndRunCode()
  6. TeleportService:Teleport(PlaceId, game.Players.shafto00, CodeToRun)
  7. end
  8.  
  9. TeleportAndRunCode()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement