How would I get a place's name

So I’m developing admin commands, and a discord webhook that logs those commands. I’m thinking of having something Adonis’s command logs have, on the footer, it has the place name, how would I go about getting a place’s name? Seems easy but my memory isn’t helping me right now. Thanks, AX1T

Extracted this piece of code from my teleporter which actually retrieved the name of the place:
MarketplaceService:GetProductInfo(Gamelist[i][1]).Name

Gamelist is a table with IDs of the game wrapped in a table. Simply use MarketplaceService:GetProductInfo(placeId).Name

5 Likes

You can get Place name using MarketPlaceService

local GetName = game:GetService("MarketplaceService"):GetProductInfo(game.PlaceId)

print(GetName.Name)
13 Likes

Thanks and thank you as well @b_arocena, it helped a lot. I forgot some things over the past year, anyways, thanks.

3 Likes

Thankyou. I was on the verge of adding another file that I had to change for every place in my game