Recording Players.PlayerAdded to Trello Error

So I am working with a SCPF and they want a script that records every time a player Joins and Leaves with the time to a Trello and I’ve got it working using ‘CharacterAdded’ but this records when the player respawns which fills up the trello quickly isn’t helpful and I read that ‘Players.PlayerAdded’ just records when the player joins but it isn’t recording to my trello any more. Here is the code:

I also cannot seem to get the leave version working aswell.

If you can help either reply here or my discord is Tim#1857

1 Like

You need to look up the documentation for Adonis and see what events are available through the HookEvent function.

I took a quick look and it appears the event you are looking for is PlayerAdded

https://github.com/Sceleratis/Adonis/blob/master/Loader/Config/API.lua

1 Like

Thank you,

I was asking around as before I tried just PlayerAdded but it was probbally something else with my script so I thought it was that but now looking back it was a different Error but thanks for your support.