Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Trello API Error help?

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

✓ Accepted answer

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.

2 comments

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

0

I said you need a LocalScript to access LocalPlayer, but that the TrelloAPI will not work in LocalScripts.

This discussion is preserved as it was. New answers, comments, and votes are closed.