-- 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. -- Challenge Planner: validate checkpoint completion in order local checkpoints = { { label = "Preparation", complete = true }, { label = "Main objective", complete = false }, { label = "Final review", complete = false }, } local nextStep for _, checkpoint in ipairs(checkpoints) do if not checkpoint.complete then nextStep = checkpoint.label; break end end print("Next checkpoint:", nextStep or "Challenge complete")