Combining numbers based on a seperate cell

I’m trying to make a sheet that records every ‘player’s’ balance. Transactions come from a form, and I was wondering if I could run a script that

  • Reviews each incoming data set
  • Adds an amount [what the form said] to the player’s balance.