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

How would I get the name of the game in a local script?

I dont have any scripts and when I use print(game.Name) all it does is print "Place2" even though its like my 201st place. I just need a little script to make this work.

1 comment

0

I would do the getgameid function then just convert the syntax to letters but im not for sure

1 answer

✓ Accepted answer
local name = game.Name
local id = game.GameId

print("https://www.roblox.com/games/"..id.."/"..name)

the game global variable has two properties that pertain to its name, the .Name and .GameId

You can get the link to the game if you wanted using the above code

If the game has multiple Places, you can also use the .PlaceId Property in a similar fashion

1 comment

0

Thank you

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