NikitaRed986

Teleporter to another place ROBLOX

Jan 11th, 2019
2,401
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. local TeleportService = game:GetService("TeleportService")
  2. local gameID = --Game ID--
  3.  
  4. function onTouched(hit)
  5. local player = game.Players:GetPlayerFromCharacter(hit.Parent)
  6. if player then
  7. TeleportService:Teleport(gameID, player)
  8. end
  9. end
  10.  
  11. script.Parent.Touched:connect(onTouched)
Advertisement
Add Comment
Please, Sign In to add comment