-- 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 Name Notebook: prevent duplicate names in a collection local usedNames = { "Clover", "Comet", "Pebble" } local function isAvailable(candidate) for _, name in ipairs(usedNames) do if name:lower() == candidate:lower() then return false end end return true end for _, candidate in ipairs({ "Moss", "clover", "Nova" }) do print(candidate, isAvailable(candidate) and "available" or "already used") end