So from the following script, I get the error,
Unable to cast string to int Script 'Players.Player.PlayerGui.FeedbackGui.FeedBackFrame.Enter.Script', Line 13
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.Text
local player = script.Parent.Parent.Parent.Parent.Parent
script.Parent.MouseButton1Down:connect(function()
--------------------------------------ERROR HERE-----------------
if player:IsInGroup(id) and player:GetRankInGroup(id) == 255 then
isOwner = true
end
-------------------------------------------------------------------------
--[Name],[Decription],[List ID]
ap:AddCard(id,"Sent by: "..game.Players.LocalPlayer.Name,List,"","top")
script.Parent.Parent.TextFrame.TextBox.Text = "Enter ID here..."
if isOwner == true then
local GCI = ap:GetCardID(id,Board)
ap:AddCardLabel(GCI,1)
else
local GCI = ap:GetCardID(id,Board)
ap:AddCardLabel(GCI,4)
end
end)

1 comment
In addition, replace line 9 with local id = script.Parent.Parent.TextFrame.TextBox