Transfer practice · Display a starting value of 3 twice before adding 4. Display the updated value once afterward. The output should be 3, 3, then 7.
v3 · Activity 1 of 1 · execution-order · state-updates · 2 min Runs here
Use a familiar idea in a different task. Read the changed requirement before running.
Display a starting value of 3 twice before adding 4. Display the updated value once afterward. The output should be 3, 3, then 7.
3 3 7
Lines must stay in order. Spelling, capitalization and spaces inside a message matter.
local score=2
print(score)
score=score+4
print(score)Output shows the starting 2 and then the updated 6.
This activity reuses syntax you have already met.
A print shows the value at the moment that instruction runs. It does not change when a later instruction updates the variable.
This number exists only inside this run. The browser has not created a real persistent Roblox currency.
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.