So, I'm trying to use the Trello API. I'm intending to set a variable which will check for a list on a trello. Problem is, when I try to set the name of that list (would be medalselectorframe.Medal[i]), it returns an error saying: Medal is not a valid member of ScrollingFrame.
remotefunction.OnServerInvoke = function(player) print(player) local medalselectorframe = player.PlayerGui.Form.form.MedalSelector for i = 1,14,1 do -- Change for number of medals, accordingly. if medalselectorframe.Medal.Style == Enum.ButtonStyle.RobloxRoundDefaultButton then -- checks ownership if selected local medalListID = API:GetListID(medalselectorframe.Medal[i].Text,requestBoardID) -- This is important! Buttons need to be named EXACTLY like the trello boards for a medal. local ownerCards = API:GetCardsInList(medalListID) if string.find(ownerCards.player) then print("Medal is owned.") else warn("Medal is NOT owned. Can't proceed.") end end end end