Transparency on all parts not working

Hi, I’m having a problem with my script, basically what I want to do is make my path of white spheres start to become transparent and return to normal with tweenserivce.
But the error of the script is that it goes sphere by sphere and I don’t know how to change it so that they are all at the same time. I think it is because the script goes line by line but I don’t know how I can fix it, I hope you can help me :frowning:

Video:

Script:

local function TransparencyOnParts()
		local Info = TweenInfo.new(1)
		
		
		
		for _, obj in pairs(Parts) do
			local TweenForTransparency = game:GetService("TweenService"):Create(obj ,Info, {Transparency = 1})
			--------------------------
			local TweenShowingPart = game:GetService("TweenService"):Create(obj ,Info, {Transparency = 0})
			
			TweenForTransparency:Play()
			TweenForTransparency.Completed:Wait()
			-----
			TweenShowingPart:Play()
			TweenShowingPart.Completed:Wait()
			-----
			TweenForTransparency:Play()
			TweenForTransparency.Completed:Wait()
			-----
			TweenShowingPart:Play()
			TweenShowingPart.Completed:Wait()
			-----
		end
		
		
	end
	TransparencyOnParts()

This waits until the tween for the sphere has stopped, remove all these :Wait()s for them to all play at once

You can take out all but one wait()

I already tried that and they don’t even go transparent

Well I redid the script I don’t know if it’s ok, it’s here ‘=’

local ts_s1 = game:GetService("TweenService")
local wk_s1 = game:GetService("Workspace")
local Parts = {wk_s1[1], wk_s1[2], wk_s1[3], wk_s1[4], wk_s1[5]} -- IDK ;v
local function TransparencyOnParts()
	warn("LOL")
	for a1, a2 in pairs(Parts) do
		task.spawn(function()
			local a3 = ts_s1:Create(a2, TweenInfo.new(1), {Transparency = 1})
			local a4 = ts_s1:Create(a2, TweenInfo.new(1), {Transparency = 0})
			a3:Play()
			a3.Completed:Wait()
			-----
			a4:Play()
			a4.Completed:Wait()
			-----
			a3:Play()
			a3.Completed:Wait()
			-----
			a4:Play()
			a4.Completed:Wait()
		end)
	end
end
TransparencyOnParts()

Still not working, none of the part changes its transparency

In teeen info you should just fill it all out like there is a property called repeatcount and another one called reverse so you could use that instead of copy pasting the same code, you could also just use delay() instead of tween.completed I would edit ure code but I’m on my phone