I am trying to make a training center using nstrikes Trello API and I also tried to use the video with it by The Envelope although the video was outdated I tried to bare with it. So when I finally finished adding my questions and all I tested it via ROBLOX Player and enter random text inside the text box and hit the Submit button. Went to Trello and saw that it did not work.

I am trying to make the Trello API - application center to make a card using my trello account. Within the card I wanted the title to be the player who submitted the application along with their user ID. In addition, in the description I wanted the questions I made and their answers. I tried to make the questions bolded so that's why you see: "**" I also tried to make it where once you submitted the application it kicked you from the game.

I put the TrelloAPI script inside ServerScriptService. And I put the token I got from the link into the StringValue. My trello board is not private. And I would like to keep it public.

Note that I couldn't put nstrikes Trello API as it exceeds the 10,000 character limit.

Card maker script:

local ap = require(game.ServerScriptServicce.TrelloAPI)
local BoardID = ap:GetBoardID("Old Saybrook Application Center")
local ListID = ap:GetListID("Officer Applications",BoardID)

script.Parent.Submit.MouseButton1Down:connect(function()
	local question1 = "1. What is your ROBLOX username?"
	local question2 = "2. How old are you?"
	local question3 = "3. What is your highest level of education?"
	local question4 = "4. Do you have any prior law enforcement experience?"
	local question5 = "5. Why do you want to become a police officer of Old Saybrook?"
	local question6 = "6. Why do you want to join this department?"
	local question7 = "7. What instrests you in a career in law enforcement?"
	local question8 = "8. [Scenario]: You see a male with a black backpack, a black hoodie, and a black ski mask with hands in his pocket. It is not winter. What do you do?"
	local question9 = "9. [Scenario]: It is winter time and it is snowing. You see an elderly female walking by, alone on the sidewalk about to cross the crosswalk. She doesn't seem to struggle crossing/walking. You're in you're car. What do you do?"
	local question10 = "10. [Scenario]: You are friends with another officer who is in the same department as you. You are on your break with your friend and go to have lunch. When it is time to pay the bill you leave a tip. But your friend (the officer) takes the tips and puts it in his pocket and leaves. What do you do?"
	local answer1 = script.Parent.A1.Text
	local answer2 = script.Parent.A2.Text
	local answer3 = script.Parent.A3.Text
	local answer4 = script.Parent.A4.Text
	local answer5 = script.Parent.A5.Text
	local answer6 = script.Parent.A6.Text
	local answer7 = script.Parent.A7.Text
	local answer8 = script.Parent.A8.Text
	local answer9 = script.Parent.A9.Text
	local answer10 = script.Parent.A10.Text
	
	local CardID = ap:AddCard((script.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Name),"**" ..question1 .."**\n" ..answer1 .."\n" .."**" ..question2 .."**\n" ..answer3 .."\n" .."**" ..question4 .."**\n" ..answer4 .."\n" .."**" ..question5 .."**\n" ..answer5 .."\n" .."**" ..question6 .."**\n" ..answer6 .."\n" .."**" ..question7 .."**\n" ..answer7 .."\n" .."**" ..question8 .."**\n" ..answer8 .."\n" .."**" ..question9 .."**\n" ..answer9 .."\n" .."**" ..question10 .."**\n" ..answer10,ListID)
end)

Submit button script:

print ("Close button loaded")

button = script.Parent
window = script.Parent.Parent

function onClicked(GUI)
	window:remove()
	wait()
	game.Players:Kick()
end

script.Parent.MouseButton1Click:connect(onClicked)

Explorer Explorer2 Explorer3 Explorer4

Please help me, thank you!

2 comments

0

Im pretty sure you need to use :GetService() for ServerScriptService.

0

game.ServerScriptServicce doesn't exist. I'd recommend using game.ServerScriptService