Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 5 years ago

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

0
Hey there, could u give ur admin gui script? Maybe i can help you Shadic1270 136 — 5y

2 answers

Log in to vote
1
Answered by 5 years ago
Edited 5 years ago

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

1local MarketplaceService = game:GetService("MarketplaceService")
2 
3local isSuccessful, info = pcall(MarketplaceService .GetProductInfo, marketplaceService, game.PlaceId)
4if isSuccessful then
5    print(info.Name) --> "Game Name "
6end
0
This is more complicated than it has to be. You can just do game.Name. It works the same and is less code. killerbrenden 1537 — 5y
Ad
Log in to vote
0
Answered by 5 years ago

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

1local TextLabel = script.Parent
2 
3TextLabel.Text = game.Name

Answer this question