I'm trying to make a fountain, so I wanted to make the water coming out of it to be random transparency so it looks real. But it won't work.
trans = {.1,.2,.3,.4,.5,.6,.7,.8,.9}
while true do
wait(1)
script.Parent.Transparency(math.random(#trans))
end

1 comment
Get rid of trans and just do math.random() default is 0-1