The title is pretty straightforward, but what I want to do is make a model with a bunch of different parts have the same transparency at any given moment. The reason I want to achieve this is that I have a model where I want all the parts to slowly fade in when a player is in a certain region (and I want to make the parts local). I’m already confident in my ability to make a Region3, I just don’t know how I can make all the parts fade in at the same time.
I can’t use an in pairs loop because that will loop through each part and change the transparency one by one, but I want all the parts’ transparency to change at the same time (like a primary part CFrame).
for _,v in pairs(Instance:GetChildren()) do
if(v:IsA("BasePart"))then
local Thread = coroutine.create(function()
--//Set Transparency or tween
end);coroutine.resume(Thread);
end;
end;
I thought of using Coroutines but was trying to stay away from them, as I’m thinking of doing this with possibly 20 parts and don’t want my players’ computers to explode.
I’ll try this anyway.
Thanks a lot!