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

How to change every of a Part's children's properties?

I want to know if there is a more efficient way of changing the properties of a Part's children like changing every child's transparency all at once.

1 answer

✓ Accepted answer

You can use ipairs. Example:

for i,v in pairs (game.Workspace.Model:GetChildren()) do --gets the children in game.Workspace.Model
v.Name = "bob" --Changes the Childrens Name to bob
end

i hope it helped

basically i is index and v is variable it doesnt have to be i,v

accept answer to show this question was answered and i dont like leeches

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