Advertisement
jai1515hb

tele

Jun 10th, 2015
326
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. wait()
  2. local place = script:FindFirstChild("237982501")
  3. local spawn = script:FindFirstChild("DestinationSpawnName")
  4.  
  5. local placeId
  6. local spawnName
  7. if place then
  8. placeId = place.Value
  9. if spawn and spawn.Value then
  10. spawnName = spawn.Value
  11. game:GetService("TeleportService"):TeleportToSpawnByName(placeId, spawnName)
  12. else
  13. game:GetService("TeleportService"):Teleport(placeId)
  14. end
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement