← Projects

Score updater

Track a temporary score before and after two updates. Preview: the score is shown as it changes, rather than rewritten output.

Runs here · Luau

Loading project… · Milestone 1 of 2

Show one score update

Store a starting score of 6 in a local variable and display it. Update it by adding 4, then display the stored value 10.

Acceptance criteria

  • Output in order: 6 → 10
  • Use the variables or addition explicitly requested in the task.
Project milestones
  1. Available to preview
  2. Available to preview
Prerequisites
Optional extension

Add a third update and observe its result in a separate experiment.

Project notes and references

Educational example. Review and redesign it for the requirements of a real project.

Your learning source is private by default. Completing this project does not grant a professional or staff role.

Luau syntax ↗

Luau standard library ↗

Luau keyword highlighting · Ctrl/⌘ + Enter: Run · Esc: leave editor

Output

Your output will appear here.

Visible examples

Required output · 6 → 10

Sharing is an explicit choice in your portfolio editor. Label exported work “Learning project”; existing publication rules apply.