Obtaining the games name through local script

Is it possible to obtain a places name using a local script?

I’m trying to create an intro gui that displays the games name. Currently, this method only works in studio:

local name = game.Workspace.Parent

However, once you actually play the game the textlabel will only say “Game”, instead of the actual name of the place.

Is there another way of going about this?

You’d need to use Marketplace Service to get the name of your game. Try using this for reference:

local market = game:GetService("MarketplaceService")
local info = market:GetProductInfo(game.PlaceId, Enum.InfoType.Product)
 
print("Name: " .. info.Name) 
9 Likes