v3 · Activity 7 of 8 · variable-reading · debugging · 2 min Runs here
This program should display the number 15. It has one mistake: the last line displays a variable name as text instead of reading its value.
Repair the last line so it reads the local variable and displays the number 15.
15
Lines must stay in order. Spelling, capitalization and spaces inside a message matter.
local score=7
print(score)The unquoted name reads the stored number 7.
This activity reuses syntax you have already met.
The update correctly stores 15. The problem is in the final print(), where quotation marks stop Luau from reading the stored value.
Inspect the line that produces the wrong output. You do not need to change the starting value or the addition.
Select a word or symbol in this authored example. Your editor draft stays unchanged.
10
5
This is a private experiment copy. It does not replace your answer or complete the activity.
Your output will appear here.
Replace this code with the starter? Download your draft to keep a copy.
Your output will appear here.
Sign in with RoCreators to save private progress across devices. Community verification is separate.