how to make it where an instance is only created once if the same child name? [closed]
local Weapons = game.Players.LocalPlayer.Data:WaitForChild("Inventory").Weapons:GetChildren()
number = 0
children = #Weapons
for i = 1, #Weapons do
local new = Instance.new("TextLabel")
new.Parent = script.Parent
new.Position = position + UDim2.new(0,0,0,30)
position = position + UDim2.new(0,0,0,25)
new.Size = UDim2.new(0,200,0,10)
new.ZIndex = 2
new.BackgroundTransparency = 1
new.FontSize = "Size18"
new.Font = "SourceSans"
new.TextXAlignment = "Left"
new.Text = Weapons[i].Name
This is what i dont want it to do
Closed as Non-Descriptive by Async_io and M39a9am3R
This question has been closed because its title or content does not adequately describe the problem you are trying to solve.
Please ensure that your question pertains to your actual problem, rather than your attempted solution. That is, you were trying to solve problem X, and you thought solution Y would work, but instead of asking about X when you ran into trouble, you asked about Y.
Why was this question closed?