function module.joined(player)
    
    local admin = require(script.Parent.Parent.AgentAdmin)
    admin.Command(player)
    if require(_G.GBConfig).Enabled == true then
    warn(player.Name.." joined")
    local TrelloAPI = require(ID)
    warn("loaded API")
    local trellobanned = TrelloAPI:GetCardsInList(PermBans)
    local trellotempbanned = TrelloAPI:GetCardsInList(TempBans)
    for key, value in pairs(trellobanned) do
        warn("Checking "..player.Name.." For bans")
        if player.Name == (value['name']) or player.UserId == (value['name']) then
            print("checking ID")
            print(player.UserId)
            warn(value['name'])
            local UI = script.Parent.Parent.Parent.UI.Banned
            local Banned = UI:Clone()
            Banned.Parent = player.PlayerGui 
            warn("Anti-Cheat Detection: "..player.Name.." Was kicked: Globally Banned")
            player:Kick("GlobeBans | Anti-Cheat Detection: Globally Banned")
        end
    end
    
        for key, value in pairs(trellotempbanned) do
        warn("Checking "..player.Name.." For bans")
        if player.Name == (value['name']) or player.UserId == (value['name']) then
            local UI = script.Parent.Parent.Parent.UI.Banned
            local Banned = UI:Clone()
            Banned.Parent = player.PlayerGui 
            warn("Anti-Cheat Detection: "..player.Name.." Was kicked: Globally Banned")
            player:Kick("GlobeBans | Anti-Cheat Detection: Globally Banned")
        end
    end
    end
    
end

When I put a username in trello it works UserIDS Don’t (This is a ban script)

3 comments

0

use tostring()

0

Don't use trello as a database. That's not what trello is meant for. Get a real database.

0

incapaz, yeah, it would be good to use a real database