-- 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. -- Fruit Goal Planner: choose the highest-priority unfinished goal local goals = { { name = "Primary target", priority = 1, complete = false }, { name = "Alternative option", priority = 2, complete = false }, { name = "Inventory review", priority = 3, complete = true }, } table.sort(goals, function(a, b) return a.priority < b.priority end) for _, goal in ipairs(goals) do if not goal.complete then print("Next goal:", goal.name); break end end