So, I made another attempt at a Trello-API.
What I have tried to do is when you click the "Send" button, after you entered your group ID into the textBox it sends the group id and name..
Problems:
local id = script.Parent.Parent.TextFrame.TextBox
local group = game:GetService("GroupService"):GetGroupInfoAsync(tonumber(id.Text))
Full:
ap = require(script.Parent.Parent.Parent.TrelloAPI)
local Board = ap:GetBoardID("Feedback")
local List = ap:GetListID("Recieved",Board)
local isOwner = false
local id = script.Parent.Parent.TextFrame.TextBox
local group = game:GetService("GroupService"):GetGroupInfoAsync(tonumber(id.Text))
local player = script.Parent.Parent.Parent.Parent.Parent
script.Parent.MouseButton1Down:connect(function()
if player:IsInGroup(id.Text) and player:GetRankInGroup(id.Text) == 255 then
isOwner = true
else
isOwner = false
end
--[Name],[Decription],[List ID]
if isOwner == true then
ap:AddCard("ID: "..id.Text.."; "..group.Name,"Sent by: "..game.Players.LocalPlayer.Name,List,"","top","","green")
else
ap:AddCard(id.Text,"Sent by: "..game.Players.LocalPlayer.Name,List,"","top","","red")
end
script.Parent.Parent.TextFrame.TextBox.Text = "Enter ID here..."
end)
23:27:31.685 - Argument 1 missing or nil 23:27:31.686 - Script 'Players.Player.PlayerGui.FeedbackGui.FeedBackFrame.Enter.Script', Line 11

2 comments
Literally nothing happens anymore :(
Try putting "group" inside the MouseButton1Down event.