Get PlaceName from PlaceID

Hello

I am making a game where I need to get the place name from ID is there anyone of doing this?

-Glue

2 Likes

Check out this post: How would I get a place's name

1 Like

This should work, put your ID were it says placeid, game:GetService("MarketplaceService"):GetProductInfo(PLACEID).Name

2 Likes

Would there also be a way to get a game icon with 256x256

Check out this API: Players | Documentation - Roblox Creator Hub

local Product = game:GetService("MarketplaceService"):GetProductInfo(PlaceId)
local Icon = Product.Details.Icon.ImageAssetId

To set a picture to this, do

script.Parent.Image.Image = Icon