Trello API Ban Script Not Working

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)

2 Likes

What Trello API are you using so I am able to look at their documentation?

@nstrike159’s Original Trello API - https://getenveloped.com/trelloapi/index.php

1 Like

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.

1 Like

I ended up fixing it. All I had to do was go into the proper Roblox game not studio.