Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to rename multiple models at once?

So I'm trying to rename multiple models at once in a folder. I've tried to do

local customers = game.Workspace.customers:FindFirstChildOfClass("Model")
customers.Name = "test123"

but it only renames one random model. Does anyone know how?

1 answer

✓ Accepted answer

Use pair loop or GetChildren() table

Example:

for i,v in pairs(customers:GetChildren()) do
	v.Name = 'test123'
end

This discussion is preserved as it was. New answers, comments, and votes are closed.