Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Trello API Question?

Asked by 8 years ago

Is it possible with the Trello API model to get it where if a player joined who's name is on the whitelist, their name is not added to a board, but if their name isn't, then their name is added to the board.

Trello API

http://www.roblox.com/Trello-API-item?id=214265621

Whitelist

local whitelist = {
["drumguy1"] = true, 
["SterlingODeahagh1"] = true, 
["AustinMiller2225"] = true, 
["AlysonLariviereMD"] = true, 
["IttybittyNinjaKitty"] = true, 
["AndrewLBraddock"] = true, 
["ClarenceFMD"] = true, 
["MusicMD"] = true, 
["TheHospitalDev"] = true, 
["SamuelHollMD"] = true,
["DumbGuy1738"] = true,
["8baan"] = true
}
local superwhitelist = {
["drumguy1"] = true, 
["SterlingODeahagh1"] = true, 
["TheHospitalDev"] = true, 
["SamuelHollMD"] = true, 
["8baan"] = true
}
local id = 2567972
game.Players.PlayerAdded:connect(function(p)
    if whitelist[p.Name] and p:IsInGroup(id) and p:GetRankInGroup(id) >=1 then
        print("You are safe, " .. p.Name)
    else
        if superwhitelist[p.Name] and whitelist[p.Name] then
        print("You are safe, " .. p.Name)
        else
            p:Kick("Bai, don't rejoin cuz you're still not going to get in!!")
        end
    end
end)
0
LOL "superwhitelist" Validark 1580 — 8y
0
Problem? TheHospitalDev 1134 — 8y
0
@Narrev, You sullen? rexbit 707 — 8y

1 answer

Log in to vote
1
Answered by
Shawnyg 4330 Trusted Badge of Merit Snack Break Moderation Voter Community Moderator
8 years ago

What you're asking is possible, but I simply won't provide the code. The TrelloAPI module is a good source, but I don't work with it, so I don't know how it works. I Recommend to learn the API yourself.

0
Thanks. I was just wondering if it was possible! TheHospitalDev 1134 — 8y
0
This should've been a comment. unmiss 337 — 8y
Ad

Answer this question