Skip to content

Scoreboard ​

Each press of a button adds a point, shown on a sign. The score is shared and reaches players who join later.

You need ​

  • An object to be the button (with a collider)
  • A sign for the score (TextMeshPro)

Variables ​

NameTypeSync
scoreIntegerSynced

Cards ​

WhenInteract⋯
What to do
Add To Variable⋯
Variablescore
Amount1
+ Add what to do
WhenOn Variable Changed — score⋯
What to do
Set Text⋯
TargetsScore Board
TextScore: {score}
+ Add what to do

{score} in the text becomes the variable's current value.

Variations ​

  • A reset button: another button with Set Variable setting score to 0
  • A minus button: Add To Variable with -1