Roblox > Trello Help

Hello, my name is mildfear. Please keep in mind that I have no experience in coding/programming whatsoever, so bear with me here.

  1. What do you want to achieve? I am using an open-source Roblox > Trello Application System I made a copy from this game and everything works just fine. However, there is just one issue.

  2. What is the issue? The issue is when I type into the response forms and I hit “Review Application,” the responses don’t even show up. I attached a video file to show what I mean. They do not show up in the game, nor do they show up on the Trello card.

Video of Testing:
robloxapp-20200522-2155268.wmv (638.4 KB)

Image of Trello Card:
AppCard

Script Code:

local plr = script.Parent.Parent.Parent.Parent.Parent
local module = require(game.ReplicatedStorage.Information)
local http = game:GetService("HttpService")
local deb = false
local boardid = ""

script.Parent.Parent.BackgroundColor3 = module.PrimaryColor
script.Parent.p1.TextLabel.TextStrokeColor3 = module.PrimaryColor
script.Parent.p2.TextLabel.TextStrokeColor3 = module.PrimaryColor
script.Parent.p3.TextLabel.TextStrokeColor3 = module.PrimaryColor
script.Parent.p3.TextLabel1.TextStrokeColor3 = module.PrimaryColor
script.Parent.p4.TextLabel.TextStrokeColor3 = module.PrimaryColor
script.Parent.p1.ImageLabel.Image = module.Logo
script.Parent.p2.ImageLabel.Image = module.Logo
script.Parent.p3.ImageLabel.Image = module.Logo
script.Parent.p4.ImageLabel.Image = module.Logo
script.Parent.p1.TextLabel.Text = "Welcome to the "..module.GroupName.."\
".." Application Center"
for i,v in pairs(module.Questions) do
	local q = script.q:Clone()
	q.Parent = script.Parent.p2.ScrollingFrame
	q.Name = "q"..i
	q.TextLabel.Text = "Q"..i.. ": "..v
	q.TextLabel.TextStrokeColor3 = module.PrimaryColor
	q.BorderColor3 = module.PrimaryColor
	q.TextBox.BorderColor3 = module.PrimaryColor
	q.Position = UDim2.new(0,20,0,(100*i)-100)
	local r = script.r:Clone()
	r.Parent = script.Parent.p3.ScrollingFrame
	r.Name = "q"..i
	r.TextLabel.Text = "Q"..i.. ": "..v
	r.TextLabel.TextStrokeColor3 = module.PrimaryColor
	r.BorderColor3 = module.PrimaryColor
	r.TextBox.BorderColor3 = module.PrimaryColor
	r.Position = UDim2.new(0,20,0,(100*i)-100)
end
script.Parent.p2.ScrollingFrame.sub.Position = UDim2.new(.5,-75,0,25+(#module.Questions)*100)
script.Parent.p2.ScrollingFrame.CanvasSize = UDim2.new(0,0,0,(#module.Questions*100)+100)
script.Parent.p3.ScrollingFrame.CanvasSize = UDim2.new(0,0,0,(#module.Questions*100)+10)

script.Parent.p1.create.MouseButton1Down:connect(function()
	if deb == false then
		deb = true
		script.Parent.p1.check.Text = "Checking Group Rank..."
		script.Parent.p1.load.Visible = true
		repeat 
			script.Parent.p1.load.Rotation = script.Parent.p1.load.Rotation+10
			wait()
		until script.Parent.p1.load.Rotation == 1440
		script.Parent.p1.load.Rotation = 0
		if plr:GetRankInGroup(module.Group) >= module.Rank then
			script.Parent.p1.check.Text = "Checking for previous applications..."
			script.Parent.p1.load.Visible = true
			repeat 
				script.Parent.p1.load.Rotation = script.Parent.p1.load.Rotation+10
				wait()
			until script.Parent.p1.load.Rotation == 1440
			script.Parent.p1.load.Rotation = 0
			
			--http stuff yeye
			local get = http:GetAsync('https://api.trello.com/1/boards/'..module.Trello..'/lists?key='..module.Key..'&token='..module.Token,true)
			local tab=http:JSONDecode(get)
		
			for _,v in pairs(tab) do
				if v.name:match('^Applications%s?$') then
					boardid = v.id
					local musget = http:GetAsync('https://api.trello.com/1/lists/'..v.id..'/cards?key='..module.Key..'&token='..module.Token,true)
					local mustab = http:JSONDecode(musget)
					for _,m in pairs(mustab) do
						if m.name:match(plr.userId) then
							script.Parent.p1.check.Text = "Error: User has already applied."
							return
						end
					end	
				end
			end
			
			script.Parent.p1.Visible = false
			script.Parent.p1.load.Visible = false
			script.Parent.p1.check.Text = ""
			script.Parent.p2.Visible = true
			script.Parent.home.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
			script.Parent.write.Style = Enum.ButtonStyle.RobloxRoundDefaultButton
		else
			script.Parent.p1.check.Text = "Error: Group rank is not high enough."
		end
		deb = false
	end
end)

script.Parent.p2.ScrollingFrame.sub.MouseButton1Down:connect(function()
	for i=1,#module.Questions do
		script.Parent.p3.ScrollingFrame["q"..i].TextBox.Text = script.Parent.p2.ScrollingFrame["q"..i].TextBox.Text
	end
	script.Parent.p2.Visible = false
	script.Parent.p3.Visible = true
	script.Parent.write.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
	script.Parent.review.Style = Enum.ButtonStyle.RobloxRoundDefaultButton
end)

script.Parent.p3.ret.MouseButton1Down:connect(function()
	script.Parent.p3.Visible = false
	script.Parent.p2.Visible = true
	script.Parent.review.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
	script.Parent.write.Style = Enum.ButtonStyle.RobloxRoundDefaultButton
end)

script.Parent.p3.sub.MouseButton1Down:connect(function()
	local data = ""
	for i=1, #module.Questions do
		data = data .. "\
".. script.Parent.p3.ScrollingFrame["q"..i].TextLabel.Text .. ": ".. script.Parent.p3.ScrollingFrame["q"..i].TextBox.Text
	end
	print(boardid)

	local musget = http:PostAsync('https://api.trello.com/1/cards/?key='..(module.Key)..'&token='..(module.Token), http:JSONEncode({["name"]=(plr.Name .. " | ".. plr.userId), ["desc"] = data,["due"]=nil,["idList"]=boardid,["urlSource"]=nil}))
	script.Parent.p4.Visible = true
	script.Parent.p3.Visible = false
	
	script.Parent.p4.check.Text = "Checking Application Data..."
	repeat 
		script.Parent.p4.load.Rotation = script.Parent.p4.load.Rotation+10
		wait()
	until script.Parent.p4.load.Rotation == 1440
	script.Parent.p4.load.Rotation = 0
	script.Parent.p4.check.Text = "Finishing Encoding..."
	repeat 
		script.Parent.p4.load.Rotation = script.Parent.p4.load.Rotation+10
		wait()
	until script.Parent.p4.load.Rotation == 1440
	script.Parent.p4.load.Rotation = 0
	script.Parent.p4.check.Text = "Sending to Server..."
	repeat 
		script.Parent.p4.load.Rotation = script.Parent.p4.load.Rotation+10
		wait()
	until script.Parent.p4.load.Rotation == 1440
	script.Parent.p4.load.Rotation = 0
	script.Parent.p4.check.Text = "Sent!"
end)


Again, I am not exactly sure what I did wrong and I hope someone can help. Thanks.

Are there any errors in the Output?


No – it doesn’t look like it.

Alright, the first thing I see when I opened a copy of that game, is that it uses a script inside a UI. You’re not suppose to use a script inside GUIs, just LocalScripts.

In order to resolve this problem, you need to change the script into a LocalScript, add use RemoteEvents to communicate from client to server. As you have stated that you don’t have a firm grasp on programming, I have fixed up this application center for you, but it’s also important that you know what’s going on, so I recommend you read up on these two topics:

Link: fixed_app_center.rbxl (35.3 KB)
Keep in mind, the scripts here are in no way the best way to do this, however it’s up to you to learn that if you wish.

2 Likes

Oh wow – these articles help me a lot. I’m definitely a little less confused now that I know what to do. Thank you so much, I appreciate your help! :smile: