-- 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. -- Pet Goal Checklist: calculate completed checklist percentage local goals = { { label = "Confirm target", done = true }, { label = "Check inventory", done = true }, { label = "Review alternatives", done = false }, } local done = 0 for _, goal in ipairs(goals) do if goal.done then done = done + 1 end end print(string.format("Progress: %d/%d (%.0f%%)", done, #goals, done / #goals * 100))