PlayerSpawned event doesnt seem to pass an agent

Yeah I tried both methods passing a player and an agent, this code was just when I tried using only the player type to see if it would work. The issue I was facing was no matter what the if statement would always fail indicating a player was not given. I found just moving it to the same file ended up fixing all my issues. So it seems like passing the agent between files isn’t supported. The next issue I’m coming across is every time the player is granted an item it dismounts them from their driftboard and destroys it for some reason.