Firestore database

How can I send thescore of score variable in the game to p1 in the control panel of Firebase so that every time the player collects points, they are increased in p1, and how can I display the values of p1 in a variable in the game

Please follow the available tutorials and examples and ask more specific questions when you get stuck.