How to get a game name from a script

Hey! I want to know how to get the game name from a script
I tried :

local gameName = workspace.Parent

but it’s an instance not a string :sob:

Thanks.

2 Likes

I think game.Name should work
local gameName = game.Name
should be enough

4 Likes
local GameName = game:GetService("MarketplaceService"):GetProductInfo(game.PlaceId).Name
54 Likes

Thank you the other thing game.Name doesnt work it only say: Game and not the actual game name.

2 Likes