You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Keep it simple and clear!
I am making a loading screen for my games and I want to add the game’s name inside of it -
What is the issue? Include screenshots / videos if possible!
When using game.Name on local scripts, it returns “Ugc” and on server scripts returns simply “Game” -
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I tried waiting for the game to be loaded, print the name, wait 5 seconds and print it again, it still doesn’t return the game’s name. I have tried looking for solutions but the best I could find was how you can get the game’s name with game.Name
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
here’s the code i am using (it’s a local script)
Original:
wait(game:IsLoaded())
script.Parent.Text = game.Name
script:Destroy()
Debugging:
wait(game:IsLoaded())
print("Game name: " ..game.Name)
script.Parent.Text = game.Name
wait(5)
print("Game name: " ..game.Name)
script:Destroy()