I'm trying to script a part that endlessly fades in and out, slowly changing from 0 Transparency to 1 Transparency, then back to 0, and so on.
Below is what I've come up with, but there is no effect on the part when I run or play. No errors show in the output.
cubeTransparency = game.Workspace.Cube.Transparency
while true do
for i = 0,1,0.1 do
cubeTransparency = i
wait(0.2)
end
wait(0.01)
end
Any help or advice would be greatly appreciated!

2 comments
Thanks!
Your welcome