So, I have a model with plates in it. The script is supposed to make the plates transparent randomly, but I want the parts to go transparent slowly. Here's the script:
local model = game.Workspace.plates
local parts = model:GetChildren()
local db = false
while true do
for i = 0,1,0.01 do
parts.Transparency = math.random[i(1,#parts)]
wait(0.01)
end
wait(1)
end
Where do I properly insert "i"? And is this script I made have anything else wrong? All help is appreciated!

1 comment
So are you asking for only one random part or a loop for all parts to indavidualy fade?