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

Trello API Error help?

Asked by 9 years ago

So. When i testing with Trello API, my script says he get error by that API returning with error: 23:04:57.931 - Workspace.TrelloAPI:334: attempt to concatenate local 'cardid' (a nil value) . If need script, here

--DONT REMOVE DEEZ!!!!--
local Trello = require(game.Workspace.TrelloAPI)
local BoardID = Trello:GetBoardID("My_game")
local AdminListID = Trello:GetListID("Admins",BoardID)
local BanListID = Trello:GetListID("Banlist",BoardID)
local UserID = game.Players.LocalPlayer.UserId
local step = Trello:GetCardID(UserID,BoardID)
local Target = Trello:GetCardInfo(step,BoardID)
--DONT REMOVE DEEZ!!!!--

function CheckAdmin()
    if Target == UserID then
        print(UserID)
        Trello:AddCard(UserID," ",BanListID)
    else
        print(UserID)
        print("Error when checking...")
        end
end
script.Parent.MouseButton1Click:connect(CheckAdmin)

That script is localscript

1 answer

Log in to vote
1
Answered by 9 years ago

Well let's start with the obvious one.

You can't use a LocalScript for this

Yes, it was necessary to have the unnecessarily big text. The reason that you can't use it in a LocalScript is that it needs to make HTTP requests, which needs HttpService, which for good security reasons is -not- available on LocalScripts.

0
You said in my previous question:"Need LocalScipt" Wut? I said script returning error: Workspace.TrelloAPI:334: attempt to concatenate local 'cardid' (a nil value) XC ProCoolEXE 27 — 9y
0
I said you need a LocalScript to access LocalPlayer, but that the TrelloAPI will not work in LocalScripts. User#6546 35 — 9y
Ad

Answer this question