Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local HTTPService = game:GetService("HttpService")
- local TrelloAPI = require(script.TrelloAPI)
- local BoardID = TrelloAPI:GetBoardID("TestBoard")
- local ListID = TrelloAPI:GetListID("Save",BoardID)
- local new = HTTPService:JSONEncode(array) --array is my array of data, theres no issue saving, only deleting the card
- local title = tostring(plr.UserId)
- local old = TrelloAPI:GetCardID(tostring(plr.UserId),BoardID)
- if old then
- local ded = TrelloAPI:DeleteCard(old)
- local NewCard = TrelloAPI:AddCard(title,new,ListID)
- else
- local NewCard = TrelloAPI:AddCard(title,new,ListID)
- end
Advertisement
Add Comment
Please, Sign In to add comment