Getting no output whatsoever and I cannot figure out the issue with this code. Can anyone help?
local TrelloAPI = require(game.ServerScriptService:WaitForChild("TrelloAPI"))
local BoardID = TrelloAPI:GetBoardID("ElectionsData")
local ListID = TrelloAPI:GetListID("RegisteredVoters",BoardID)
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function()
local Cards = TrelloAPI:GetCardsInList(ListID)
for v,i in pairs(Cards) do
if i.name == player.Name then
print("Player is a registered voter.")
else
print("Player is NOT a registered voter.")
end
end
end)
end)