Hi how do I get the games Name and ID a script is running in? sorry for such a short post.
Your post is a little vague and lacks detail, however you can try this
local marketplaceService = game:GetService("MarketplaceService")
local isSuccessful, info = pcall(marketplaceService.GetProductInfo, marketplaceService, game.PlaceId)
if isSuccessful then
print(info.Name) -- Name of the Place from the given PlaceId
end
2 Likes