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?
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.