Topic explains everything. For some reason next code after loop run in same time with for loop
code:
tween.Completed:Connect(function()
building.Effects.Smoke.Enabled = false
cc.CFrame = bc2.CFrame
for _,beamRacks in pairs(building.Union.Photons:GetChildren()) do
for _,beamRack in pairs(beamRacks:GetDescendants()) do
if beamRack:IsA("Beam") then
local thread = coroutine.create(function(object, time, action)
transparent(object, time, action)
end)
coroutine.resume(thread, beamRack, 2, "decrease")
end
end
end
transparent(building.Union.BeamConnectMain.Beam, 2, "decrease")
end)