How to make it so that a gui creates a new test label for each item

I’m making a serving system for an in flight entertainment commission, and I need it so that for every tool in a folder located in ReplicatedStorage, the GUI creates a new text label where the text is the name of that tool. Can anyone help? Thanks.

local ToolsFolder = game.ReplicatedStorage.ToolsFolder
local Frame = script.Parent

for i, tool in ipairs(ToolsFolder:GetChildren()) do
	local newTextLabel = Frame.TextLabel:Clone()
	newTextLabel.Text = tool.Name
	newTextLabel.Name = "newTextLabel"
	newTextLabel.Parent = Frame
end
2 Likes

Thanks. There is one problem though, because if I add more tools they just overlap. Is there any way to move them down a little?

if you want to list them neatly, you can use UIListLayout | Roblox Creator Documentation

1 Like