Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Get Place name by ID?

I'm working on a singleplayer-type game with servers.

I need to get the names of places by their ids... Anyone?

1 comment

0

Remember to accept the answer if it helped instead of upvoting...

1 answer

You could use GetProductInfo from the MarketplaceService, which could return all or any of these values about any ROBLOX asset.

local marketplace = game:GetService('MarketplaceService')

local getNameFromId = function (assetId)
	local info = marketplace:GetProductInfo(assetId)
	print(info.Name)
end

2 comments

1

Thanks!

1

Remember to accept the answer.

This discussion is preserved as it was. New answers, comments, and votes are closed.