So, i’m creating a Trello Ban system but for some reason it does not kick me.
local Trello = require(script.Parent.TrelloAPI)
local boardId = Trello:GetBoardID("LMF Bans")
local ListID = Trello:GetListID("Bans",boardId)
local Cards = Trello:GetCardsInList(ListID)
game.Players.PlayerAdded:Connect(function(p)
for i,v in pairs(Cards) do
if v.name == p.Name then
p:Kick(v.desc)
end
end
end)
The problem is that you’re comparing the player’s name to the String of Aiden_12114 which will return false. It’s best to use the player’s Id instead of the username because players has the ability to change their username. If you do still plan to use the Username_Id for the card’s format name you would have to substring the player’s id and compare it to player.UserId.