Log in to vote

How to work with multiple textlabels and usernames?

Asked by
bxshh 0
14 days ago

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.

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.

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

Log in to vote
Answered by 14 days ago
Edited 12 days ago

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

    Playertext.Text = player.Name

if Playertext.Text = player then

This may work? I am not sure sorry.

How do I do so without repeating my name, I want to list all my team mates names below me bxshh 0 — 13d

Answer this question