Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wait()
- local place = script:FindFirstChild("237982501")
- local spawn = script:FindFirstChild("DestinationSpawnName")
- local placeId
- local spawnName
- if place then
- placeId = place.Value
- if spawn and spawn.Value then
- spawnName = spawn.Value
- game:GetService("TeleportService"):TeleportToSpawnByName(placeId, spawnName)
- else
- game:GetService("TeleportService"):Teleport(placeId)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement