for a,b in pairs(Player.Character.Kagune:GetChildren()) do if b:IsA("Part") then for i = 1, 10 do b.Transparency = b.Transparency + 0.1 wait(0.1) end end
It works fine however it makes the parts transparent one at a time, how do I make all the parts do this at the same time?
Your loops are in the wrong order! You should first iterate through using the counter, and THEN iterate through all of the parts and set the transparency to the value generated by your counter loop.
Here is how you would do this...
for transparency = 0, 1, 0.1 do -- counter loop for _, child in next, Player.Character.Kagune:GetChildren() do if child:IsA("BasePart") then child.Transparency = transparency end end wait(0.1) end