Advertisement
hottrin

How to make a teleport pad (ThariqJr)

Nov 5th, 2019
420
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. local TeleportService = game:GetService("TeleportService") -- get a part and put a script into it and paste it
  2. local gameID = (game id) -- get the game id of the game paste it in here!
  3.  
  4. function onTouched(hit)
  5. local player = game.Players:GetPlayerFromCharacter(hit.Parent)
  6. if player then
  7. TeleportService:Teleport(gameID,player)
  8.  
  9. end
  10. end
  11.  
  12. script.Parent.Touched:connect(onTouched)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement