For some reason my trello script wont do “else”. So if the person is in the trello they get what they need, but if their not nothing happens.
script
local dealer = game.Workspace["Gun Dealer Finley (Legal)"]
script.Parent.Triggered:Connect(function(player)
print("Held")
local API = require(game.ServerScriptService:WaitForChild("TrelloAPI"))
local GunBoardID = API:GetBoardID("Florida Gun Permit Board")
local LegalID = API:GetListID("Firearm Certified", GunBoardID)
local LegalCards = API:GetCardsInList(LegalID)
for _, Player in pairs(game.Players:GetChildren()) do
for _, Card in pairs(LegalCards) do
if string.find(Card.name, Player.UserId) then
print("Has Legal Gun Permit")
dealer.Name = "You have a legal gun permit ".. Player.name
wait(3)
dealer.Name = "Gun Dealer Finley (Legal)"
else
game.Workspace["Gun Dealer Finley (Legal)"].Name = "Sorry ".. Player.name.. " You do not have a legal gun permit"
end
end
end
end)```