Trello Ban System not working?
For some reason, my script won't work. I have tried for a bit, and the games we use are not FilteringEnabled.
The code is as follows:
03 | print ( "ESAEdev: BANNED CHECK STARTED!" ) |
05 | local Trello = require(game.ServerScriptService.TrelloAPI) |
11 | local bansReady = false |
15 | board = Trello:GetBoardID(trelloboardid) |
16 | list = Trello:GetListID( "Banned" , board) |
19 | print ( "ESAEdev: UPDATING BANS!" ) |
26 | local allBans = Trello:GetCardsInList(list) |
27 | for i,v in pairs (allBans) do |
28 | banList [ #banList+ 1 ] = tonumber (v.name) |
32 | game:service 'Players' .PlayerAdded:connect( function (p) |
33 | if bansReady = = false then repeat wait() until bansReady = = true end |
34 | for _,v in pairs (banList) do |
36 | print ( "ESAEdev: BANNED" ) |
37 | p:Kick 'You are banned from all servers with ESAE.' |
38 | print ( "ESAEdev: USER REMOVED!" ) |
If anyone sees any errors, comment about it. I'm open for comments.