I've created a script that checks if a player's name is the same as the card's name, if so, it will kick them. (Trello ban)
wait() game:GetService("HttpService").HttpEnabled = false --Disable then enable, if not, it will error saying, "Http requests are not enabled". This code errors saying, "An error has occurred". game:GetService("HttpService").HttpEnabled = true wait() local player = script.Parent.Parent api = require(workspace:WaitForChild("TrelloAPI")) board = api:GetBoardID("Uncle Jamima") banLand = api:GetListID("Banland", board) bannedCards = api:GetCardsInList(banLand) for i,v in ipairs(bannedCards) do print(v.name) if player.Name == v.name then player:Kick("You are banned.") end end while true do wait(2) --Repeat for i,v in ipairs(bannedCards) do print(v.name) if player.Name == v.name then player:Kick("You are banned.") end end end
Error; "An error occurred '--.checkIfBanned', Line 2"