Instead of manually changing each snow you can just loop through the snow parts and change their transparency in 1 go. Make sure they’re sorted in the workspace first, like putting them inside a folder.
while enabled == true do
for i, snow in pairs(example:GetChildren()) do -- "example" can be the folder that has all the snow parts
if snow.Transparency == 1 then
snow.Transparency = 0
end
end
wait(5)
end
Not sure what snow1 = math.random(#snowblocks) does
so the script selects a random piece of snwo from the folder every say 15 seconds and sets it to transparency 0 the snow 1 math random was selecting a random piece from the folder named Snow
while enabled == true do
SelectedSnow = snowblocks[math.random(#snowblocks)]
if SelectedSnow.Transparency == 0 then
SelectedSnow.Transparency = 1
end
task.wait(15)
end
while enabled == true do
SelectedSnow = snowblocks[math.random(#snowblocks)]
if SelectedSnow.Transparency == 0 then
SelectedSnow.Transparency = 1
else continue end
task.wait(15)
end
You can just add a continue if the selectedsnow is already transparent