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

How to work with multiple textlabels and usernames?

Currently I am working on a agent team select menu, and for this part I want the users name to be displayed on the left, as seen in the screenshot below. https://i.imgur.com/ryVmriQ.png

If you look at the screenshot below, I have 5 text labels. This is how I plan to list the usernames of each individual in the team. https://i.imgur.com/NoG1UGY.png

I can't wrap my head around how I can achieve this, perhaps there is a much more efficient way to achieve this?

1 answer

I'd say if you are trying to add usernames of that person then:

local playerservice = game:GetService("Players")
local player = playerservice.LocalPlayer

local Playertext = script.Parent

player.CharacterAdded:Connect(function()
	wait()
	Playertext.Text = player.Name

if Playertext.Text = player then
        Playertext:Destroy()
end)

This may work? I am not sure sorry.

1 comment

0

How do I do so without repeating my name, I want to list all my team mates names below me

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