I am making a script to teleport to other places, and I need to know how I can get the name of a place from it's id.
The MarketplaceService provides this sort of information.
Specifically, in this case, you will use the GetProductInfo method.
The example code on that Wiki article gives you what you need. I reproduce it here:
local Asset = game:GetService("MarketplaceService"):GetProductInfo(125378389) print(Asset.Name .. " :: " .. Asset.Description)