Advertisement
Guest User

Untitled

a guest
May 21st, 2019
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. -- The following script(s) will show you how to teleport between places in roblox using studios
  2. -- Make sure to insert this script into the part you want the teleporter to be
  3. -- this will only work if the places are connected(they are part of the same game)
  4.  
  5. -- Raw TPer:
  6.  
  7. local TeleportService = game:GetService("TeleportService")
  8.  
  9. local level1Id = 323422604 -- Change "0" to the place ID
  10.  
  11. game.Players.PlayerAdded:connect(function(player)
  12. TeleportService:Teleport(level1Id, player)
  13. end)
  14.  
  15. -- Tp when touched:
  16.  
  17. local TeleportService = game:GetService("TeleportService")
  18. local level1Id = 323422604 -- Change "0" to the place ID
  19.  
  20. function onTouched(hit)
  21. local player = game.Players:GetPlayerFromCharacter(hit.Parent)
  22. if player then
  23. TeleportService:Teleport(level1Id, player)
  24. end
  25. end
  26.  
  27. -- This script was made by Francesco_miner with the help of the roblox wiki
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement