-- ScriptsCodes | Roblox Studio Luau utility -- Run: Open your own place in Roblox Studio, choose View > Command Bar, paste this file, and press Enter. -- Output: Results appear in the Studio Output window. Edit the sample values before running. -- Lua Sequence Demo: advance through an ordered task sequence local steps = { "Inspect", "Prepare", "Test", "Review" } local current = 1 local function nextStep() current = current + 1 return steps[current] end print("Current:", steps[current]) print("Next:", nextStep())