player.score

Type: Number

The player's current score. The value is capped at 30,000; attempting to increase it past 30,000 will simply set it to 30,000.

Player scores cannot hold values outside the range [-32,768, 32,767].

Example

--
-- Award a player one point for every frame they spend alive:
--
for each player do
   if current_player.biped != no_object then
      --
      -- If the player has a biped on the map, then they must be alive.
      --
      current_player.score += 1
   end
end

See also