Right now I have a global server list in my game, and it runs on trello to stay global.
When a card is deleted in the list, it is removed from the lobby.
I wrote a simple script to remove the card when a player leaves and players has only 1 child.
game.Players.PlayerRemoving:Connect(function() players = game.Players:GetChildren() if tonumber(#players) == 1 then print("13") print(tonumber(#players)) servercard:Delete() wait(15) print("kicking players in 15 seconds") shutdown() end end)
For some reason, this doesn’t work.
I’m using this trello API:
The function runs just fine and there are no errors, but it just doesn’t delete the server card in trello.