Each time i click a button it is keep makes new lists and it make new card on the old list.
local HS=game:GetService("HttpService")
key = "yourkey"
token = "yourtoken"
Player = script.Parent.Parent.Parent.Parent
script.Parent.MouseButton1Click:connect(function()
local musget = HS:GetAsync('https://api.trello.com/1/boards/T2acLGYr/lists?key='..key..'&token='..token,true)
local mustab = HS:JSONDecode(musget)
for _,m in pairs(mustab) do
if m.name:match(Player.userId) then
game:service'HttpService':PostAsync("https://api.trello.com/1/cards?key="..key.."&token="..token.."&name="..Player.Name..":"..Player.userId.."&desc=".."test".." &idList="..GetListID(Player.Name..":"..Player.userId), game.HttpService:JSONEncode({"true"}))
else
game:service'HttpService':PostAsync("https://api.trello.com/1/lists?key="..key.."&token="..token.."&name="..Player.Name..":"..Player.userId.."&idBoard=56f5ec6c0232a3e9f911694a", game.HttpService:JSONEncode({"true"}))
end
end
end)
