Possible To Get Game Name?

Is it possible to fetch the game’s name from a plugin?

(game.Name doesn’t work)

Yeah, you have to get the parent of a service, like workspace, players, etc.

Or you could use tostring on game.Name

local gameString = tostring(game.Name)
print(gameString)

game.Name already returns a string, so tostring does nothing.

oh right lol, then I’m not really sure why it isn’t working, maybe a plugin limitation

Maybe you could try
print(game:GetFullName())

Use this:

local MarketplaceService = game:GetService("MarketplaceService")
MarketplaceService:GetProductInfo(game.PlaceId)["Name"]

This only returns “Place” + Number
My answer returns the actual name of the place

That’s weird, worked for me.
image

Is your place’s name Plugins ?

2 Likes