Advertisement
yonidrori

Untitled

Oct 9th, 2015
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. ---Put this script inside the object that you want to teleport the player to a different game.
  2. ---Replace "1818" with the game's ID.
  3.  
  4. local teleportService = game:GetService("TeleportService")
  5. function onTouched(hit)
  6. local player = game.Players:GetPlayerFromCharacter(hit.Parent)
  7. if player then
  8. game:GetService("TeleportService"):Teleport(304266875, player)
  9. end
  10. end
  11. script.Parent.Touched:connect(onTouched)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement