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

Get every children with a modify-able state?

Is there a way to get every children from a Model, but still modify them all at once (because GetChildren() doesn't let you change properties, as it's a read-only table)?

I want to make a whole GUI disappear by changing its transparency 100 times (0.1 each time) and make it look smooth, but it's taking me a lot of writing to take EVERY GUI and Frame.

I would appreciate any help

Thanks,

mranderson11

1 answer

GetChildren actually does let you change properties, but you have to loop through it, because it's a table.

for i,v in pairs(workspace:GetChildren()) do --i is the index (1,2,3 etc.) from the table, and v is the value.
	if v:IsA("BasePart") then --If the current value is a part
		v.Trasparency = 1 --Make it invisible.
	end
end

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