Hey Developers,
I’m trying to achieve a system that retrives cards from my trello board, processing the descriptions (which are decal id’s) and setting them as Image Labels. My code is doing that, however it is duplicating every image twice, which as you can imagine is not exactly useful. My current code uses for
for _,v in pairs which is what I believe is duplicating everything. Does anyone know anyway around this?
for _,v in pairs(tab) do
if v.name:match('Bill Board') then
boardid = v.id
local musget = game:GetService("HttpService"):GetAsync('https://api.trello.com/1/lists/'..v.id..'/cards?key='..Key..'&token='..Token,true)
local mustab = game:GetService("HttpService"):JSONDecode(musget)
for _,m in pairs(mustab) do
local Advert = Instance.new("ImageLabel")
Advert.Parent = game.Workspace.AdvertBoards:GetChildren().SurfaceGui
Advert.Size = UDim2.new(1,1,1,1)
Advert.Position = UDim2.new(0,0,1,0)
Advert.Image = "rbxassetid://"..m.desc
Any help would be appreciated. 
