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

Trello API create board on join code not working?

Asked by 1 year ago
Edited 1 year ago

I was trying to make a list on Trello when someone joins the game. So, a list for each player. The name of the list is the player's username. My code doesn't work though. Here is my code.

local trelloapi = require(game.ServerScriptService:WaitForChild("TrelloAPI"))
local boardid = trelloapi:GetBoardID("management records")

game.Players.PlayerAdded:Connect(function(plr)
    print("woo hooo player found")
    trelloapi:AddList("".. plr.Name.. "'s records", boardid)
    print("omg board created")
end)

Edit: updated code

local trelloapi = require(game.ServerScriptService:WaitForChild("TrelloAPI"))
local boardid = trelloapi:GetBoardID("management records")
local players = game:GetService("Players")

players.PlayerAdded:Connect(function(plr)
    print("woo hooo player found")
    trelloapi:AddList("".. plr.Name.."", boardid)
    print("omg list created")
end)

(end of edit) Notice: The first print command didn't show up in the output, so I'm pretty sure it's something above that. nothing showed up in the output. My API does work, I tested it. Suggestions would be nice, thank you!

0
try game:GetService("Players") Puppynniko 1059 — 1y
0
Thank you! I'll try it! bblossomedd 2 — 1y
0
It still doesn't work.. :( bblossomedd 2 — 1y
0
add a print in line 4 and see if it runs? Since if it does, the first print in the PlayerAdded event should run regardless of if the rest of the function does or not. If the print on line 4 doesn't work, there is something wrong with the variables or the way its named. manith513 121 — 1y
View all comments (2 more)
0
i think its your trelloapi module problem or the script(Instance) problem Puppynniko 1059 — 1y
0
i used a different api and it works fine, but i did test the api used when i made this post, and it worked bblossomedd 2 — 1y

Answer this question