Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to work with multiple textlabels and usernames?

Asked by
bxshh 0
3 years 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. 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

Log in to vote
0
Answered by 3 years ago
Edited 3 years 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

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.

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

Answer this question