AddToScore (Main.sc)

AddToScore(amount)

Adds an amount to the player’s current score.

Parameters:amount (number) – The amount to add to the score (can be negative).