Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How would I send my gameid or link via trello, in a desc of a card?

Asked by 7 years ago

I made a protective services, which works and is very effective. What we could use is when someone sends in a report, we could view the location.

  • Here is the trello board : https://trello.com/b/lalarmID/myprotectedserver

Now what? I made a script, and now I wanna find out the local user who sent game place link or ID.

HS = game:GetService('HttpService')
--HS.HttpEnabled = true
Token = "(personal)"
APIKey = "(personal)"
--BoardID = "lalarmID"
ListId = "(personal)"
ansholder=script.Parent.Parent.Parent.Parent.Answers
unsubmitted=true
plr=script.Parent.Parent.Parent.Parent.Parent.Parent
ansholder.Username.Value=plr.Name
if plr:IsInGroup(2756381) then
    ansholder.Rank.Value=plr:GetRoleInGroup(2756381)
end



function onClick(mouse)
    if ansholder.MassPatrol.Value==true then
        MP="Yes"
    else MP="No"
    end
    if ansholder.Donated.Value then
        donated="Yes"
    else
        donated="No"
    end
    if ((unsubmitted)) then
        unsubmitted=false
        script.Parent.Text="Submitted!"
        script.Parent.BackgroundColor3=Color3.new(54/255, 177/255, 20/255)
        script.Parent.TextColor3=Color3.new(0,0,0)
        local desc="\n**Reason**: "..ansholder.City.Value
        AddCard((ansholder.Rank.Value.." ["..ansholder.Username.Value.."]"),ListId,desc)
        script.Parent.Parent.Parent.Visible=false
    end 
end

function AddCard (Name, ListID, Desc)

    local NewCard = {}

    NewCard.name = tostring(Name)
    NewCard.desc = Desc
    NewCard.key = APIKey
    NewCard.token = Token

    local CardEncode = HS:JSONEncode(NewCard)

    HS:PostAsync("https://api.trello.com/1/lists/"..ListID.."/cards", CardEncode)
end


script.Parent.MouseButton1Down:connect(onClick)

0
So, from what I'm understanding, you're using a local script and this is sending information to a trello board? You then want to get the players name and send that information as well? jjwood1600 215 — 7y

Answer this question