Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do i get the name of my place for my admin GUI?

Im trying to make a an admin gui that get the name of the place for the title but idk how and google isn't helping me

1 comment

0

Hey there, could u give ur admin gui script? Maybe i can help you

2 answers

✓ Accepted answer

The best way to do this is to use the MarketplaceService.

local MarketplaceService = game:GetService("MarketplaceService")

local isSuccessful, info = pcall(MarketplaceService .GetProductInfo, marketplaceService, game.PlaceId)
if isSuccessful then
    print(info.Name) --> "Game Name "
end

1 comment

0

This is more complicated than it has to be. You can just do game.Name. It works the same and is less code.

If your attempting on making it so you display the name of the game the script is just

local TextLabel = script.Parent

TextLabel.Text = game.Name

This discussion is preserved as it was. New answers, comments, and votes are closed.