I'm working on a singleplayer-type game with servers.
I need to get the names of places by their ids... Anyone?
I'm working on a singleplayer-type game with servers.
I need to get the names of places by their ids... Anyone?
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
Thanks!
Remember to accept the answer.
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
Remember to accept the answer if it helped instead of upvoting...