Basically, I was toying with some transparency scripts and wanted to try doing a transparency fading script. This was my attempt:
if script.Parent.Transparency < 1 then
script.Parent.Transparency = script.Parent.Transparency + 0.1
else
script.Parent.Transparency = 0
end
For whatever reason, it's not working. I'm not getting errors or anything in the output. Can anybody explain or correct my script?

3 comments
Why not just have the Transparency part in the while loop's arguments, and put the wait on this inside? ;P
This is shorter
Because wait will always be true, it's just the matter of Transparency being true with the "and" operator. Now, if you had a thousand conditions, then I would recommend breaking it up. However in this scenario, it works.