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

Help with making this script properly work, it wont send the data for some reason, what can I do?

basicly when you put your "warrant" and submit it, it should fireserver and send the data to the server to put on the trello, but for some reason I get 13:56:07.613 - ServerScriptService.PoliceWarrantEvent.PoliceWarrantTrello:814: No Parameters Found!

What does this mean and how can I fix this script?

Localscript in GUI

local Reason = script.Parent.Parent.Reason.Text

local NameOfWarrant = script.Parent.Parent.NameOfWarrant.Text

local Description = script.Parent.Parent.Description.Text

local Enter = script.Parent

local CanSubmitWarrant = true

local Playa

Enter.MouseButton1Click:Connect(function()
	game.ReplicatedStorage.Police.SubmitWarrant:FireServer(Playa, NameOfWarrant, Description, Reason)
end)

ServerScript in Serverscript storage

ap = require(script.PoliceWarrantTrello)  

local Board = ap:GetBoardID("LAPD Warrants") --EDIT NAME OF BOARD (Don't use ID just the name)
local List = ap:GetListID("Warrants",Board) --EDIT NAME OF LIST (Don't use ID just the name)


game.ReplicatedStorage.Police.SubmitWarrant.OnServerEvent:Connect(function(Playa, NameOfWarrant, Description, Reason)
	print("Received")
	ap:AddCard(NameOfWarrant,"Sent by: "..Playa.Name.."		Description of suspect: "..Description.."		Reason for warrant: "..Reason)
end)

It prints "Received" but will return the error when it tries to make the card.

Trello API Im using https://www.roblox.com/library/214265621/Trello-API-Original

1 answer

Nevermind my problem was not adding ,List,"","top"

Fixed script

ap = require(script.PoliceWarrantTrello)  

local Board = ap:GetBoardID("LAPD Warrants") --EDIT NAME OF BOARD (Don't use ID just the name)
local List = ap:GetListID("Warrants",Board) --EDIT NAME OF LIST (Don't use ID just the name)


game.ReplicatedStorage.Police.SubmitWarrant.OnServerEvent:Connect(function(Player, ArgumentOne, ArgumentTwo, ArgumentThree)
	print("Received")
	print("Warrant sent by "..Player.Name)
	print(ArgumentOne)
	print(ArgumentTwo)
	print(ArgumentThree)
	ap:AddCard(ArgumentOne,"Sent by: "..Player.Name.."		Description of suspect: "..ArgumentTwo.."		Reason for warrant: "..ArgumentThree,List,"","top")
end)

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