Find a way to clutter UI less

I’m working on a hub for some of my group’s games, which relies on the player walking towards a teleport part and a UI showing up and I’m trying to make it so I don’t need a separate UI for each game

Player walks on to a part, this UI shows up

If I go the easy way that will result in me having to make more UIs and renaming the game title to the other names, which I don’t fancy doing.

I’ll also need a method of getting the IDs, which are currently being stored in a ModuleScript.

So essentially I’m looking for a way to “automatically” append the game’s names on the UI and effectively keep me from having to make more UIs.

If anyone needs further information I’ll be happy to give.


I would probably put an attribute on each of the parts that contains the game name, and another for the game ID.
Then the script that shows the UI can pick this up and set the label correctly.

You can use MarketplaceService | Roblox Creator Documentation to grab a game’s name from the gameID’s that you already have stored.

So you would have something like this:

local MarketplaceService = game:GetService("MarketplaceService")

local game = MarketplaceService:GetProductInfo(gameID)
myGUI.NameLabel.Text = game.Name
1 Like