So basically I have a private module script with the following code:
local G = {}
function G.Do()
HttpServ = game:service('HttpService')
local GAsync = HttpServ:GetAsync('https://api.trello.com/1/boards/FnWqOSdz/lists',true) --boardid
Info = HttpServ:JSONDecode(GAsync)
local function UpdateTrello()
Blacklist = {}
for i,v in pairs(Info) do
if v.name:find("Bans") then --list name
local GetTable = HttpServ:GetAsync('https://api.trello.com/1/lists/'..v.id..'/cards',true)
local Table = HttpServ:JSONDecode(GetTable)
for j,b in pairs (Table) do
table.insert(Blacklist,b.name)
end
end
end
end
for i,j in pairs (game.Players:GetChildren()) do
for i,r in pairs (Blacklist) do
if j.Name:lower() == r:lower() then
j:Kick("You have been banned from all FPS camps.")
end
end
end
game.Players.PlayerAdded:connect(function(Player)
for i,v in pairs (Blacklist) do
if Player.Name:lower() == v:lower() then
Player:Kick("You have been banned from all FPS camps.")
end
end
end)
UpdateTrello() while wait(120) do UpdateTrello() end
end
return G
I'm trying to require it from a global script in server script service, here's the code in the global script:
req = require(569012960)
req.Do()
I'm trying to get cards from a trello.
