I am making a player list, and making it to pick someone as a suspect for something, but it's only working for the first person in the game, what did I do wrong?
Send.People:ClearAllChildren()
local Spot = 0
for _,v in pairs(game.Players:GetPlayers()) do
local NT = PTab:Clone()
NT.Parent = Send.People
NT.Position = UDim2.new(0, 0, Spot, 0)
NT.Name = v.Name
NT.Text = v.Name
Spot = Spot + 20
end
local Tabs = Send.People:GetChildren()
for i = 1, #Tabs do
Tabs[i].MouseButton1Down:connect(function()
Send.Suspect.Value = Tabs[i].Name
Send.SuspectLabel.Text = 'Selected Suspect: '..Tabs[i].Name
end)
end

2 comments
We might need a bit more than this...any errors?
No errors. And this is the entire part of it, the rest is just the button click.