If you only have one button like you seem to, you can just store the Agent whenever AttachToPlayer(:agent) is called