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 4 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 — 4y

2 answers

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

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
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 — 4y
Ad
Log in to vote
0
Answered by 4 years ago

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

Answer this question