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

Will you help me trello please?

Asked by 9 years ago

It says theres an error while I was scripting for a Trello Game so heres the script.

script.Parent.p1.create.MouseButton1Down:connect(function()
    if deb == false then
        deb = true
        script.Parent.p1.check.Text = "Connecting to trello ..."
        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          
        script.Parent.p1.check.Text = "Checking for previous appeals..."
            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
        else
        local get = http:GetAsync('https://api.trello.com/1/boards/'..module.Trello..'/lists',true)
            local tab=http:JSONDecode(get)                                                                                        --http stuff yeye
            for _,v in pairs(tab) do
                if v.name:match('Ban Appeals') then
                    boardid = v.id
                    local musget = http:GetAsync('https://api.trello.com/1/lists/'..v.id..'/cards',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 sent a appeal."
                            return
                        end
                    end 
                end
            end
        end
    end
end)
0
You need to provide the error message and ideally state what you've done to try and fix it. chess123mate 5873 — 9y

Answer this question