Transfer practice · Track two updates. Start at 1 and display it. Add 3 and display the new value. Add 2 and display it again. Output must show 1, 4, then 6.
v3 · Activity 1 of 1 · local-variables · state-updates · execution-order · 5 min Runs here
Use a familiar idea in a different task. Read the changed requirement before running.
Track two updates. Start at 1 and display it. Add 3 and display the new value. Add 2 and display it again. Output must show 1, 4, then 6.
1 4 6
Lines must stay in order. Spelling, capitalization and spaces inside a message matter.
local points = 2
print(points)
points = points + 3
print(points)This different example shows 2, then 5. Use the starting score and update requested by your task.
This activity reuses syntax you have already met.
Choose a local variable name for the score. Put the first print before the update and the second print after it.
This activity checks the two numeric outputs in order. Your variable name can differ from the example. This is practice state for one run, not saved Roblox player data.
Select a word or symbol in this authored example. Your editor draft stays unchanged.
points 2
points
points points 3
pointsThis 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.