Teleporting to a specific location when arriving from a place

What im trying to achieve is upon arriving from a different place, teleport to a location instead of the spawnlocation. Please tell me where to put the scripts. Thanks!


Heres is my suggestion I was going to use SpawnName within teleport service TeleportService | Documentation - Roblox Creator Hub .I was going to somehow find a way to create the spawn in a location maybe via messaging service.

But for a MVP imma be lazy maybe teleport them to the nearest checkpoint utilizing spawnName