Application With Trello API Won't Work? Why Not?
I couldn't figure out what was wrong with the scripts I and GUI I just spent around 3 hours on, so I came here to see if you guys knew! I'll check the answers in the morning, so sorry if I can't reply.
Local Script:
01 | script.Parent.Activated:Connect( function () |
02 | script.Parent.Text = "Sending Information..." |
03 | local Q 1 = script.Parent.Parent.Q 1. Text |
04 | local Q 1 A = script.Parent.Parent [ "Q1 Answer" ] .Text |
05 | local Q 2 = script.Parent.Parent.Q 2. Text |
06 | local Q 2 A = script.Parent.Parent [ "Q2 Answer" ] .Text |
07 | local Q 3 = script.Parent.Parent.Q 3. Text |
08 | local Q 3 A = script.Parent.Parent [ "Q3 Answer" ] .Text |
09 | local Event = game.ReplicatedStorage.TrelloSend |
10 | local Player = game.Players.LocalPlayer.Name |
11 | Event:FireServer(Player.Name,Q 1 ,Q 1 A,Q 2 ,Q 2 A,Q 3 ,Q 3 A) |
Server Script:
1 | local Event = game.ReplicatedStorage.TrelloSend |
2 | local API = require(game.ServerScriptService:WaitForChild( "TrelloAPI" )) |
3 | local BoardId = API:GetBoardID( "Applications" ) |
4 | Event.OnServerEvent:Connect( function (Plr,Q 1 ,Q 1 A,Q 2 ,Q 2 A,Q 3 ,Q 3 A) |
5 | local LR = API:GetListID( "LR Application" ,BoardId) |
6 | API:AddCard( "Application" ,Plr.. ": " ..Q 1.. " " ..Q 1 A.. " " ..Q 2.. " " ..Q 2 A.. " " ..Q 3.. " " ..Q 3 A,LR) |
Output:
22:08:56.087 - ServerScriptService.Proccesser:6: attempt to concatenate local 'Q1' (a nil value)
Thanks for reading, and possibly answering.