Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---Put this script inside the object that you want to teleport the player to a different game.
- ---Replace "1818" with the game's ID.
- local teleportService = game:GetService("TeleportService")
- function onTouched(hit)
- local player = game.Players:GetPlayerFromCharacter(hit.Parent)
- if player then
- game:GetService("TeleportService"):Teleport(304266875, player)
- end
- end
- script.Parent.Touched:connect(onTouched)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement