How can you store update the player list if a player joins the game?

Self.GetPlayspace().PlayerAddedEvent().Subscribe(myfunction)