So I'm making a gui that will display all of the pieces of a player on a surface gui. I also have it printing them. I got it to do it, but it does them individually. So the gui will display only one of them. How do I get it to either display all of them, or display each of them on different text labels? Here is my gui so far:
script.Parent.Touched:connect(function(hit)
if hit.Parent:FindFirstChild('Humanoid') then
local children = hit.Parent:GetChildren()
for index, children in pairs(children) do
print(index, children.Name)
game.Workspace.List.SurfaceGui.Frame.TextLabel.Text = children.Name
game.Workspace.List.SurfaceGui.Frame.TextLabel.TextSize = 5
end
end
end)

2 comments
children:GetChildren() line 4 or just use GetDescendants() -- gets all children
So it'll get them all at once instead of in a list?