I forgot how to fade something using a for loop, any help?
This is the code I have so far.
while true do
wait()
for i = 1,10 do
wait()
script.Parent.Tex.Transparency = script.Parent.Tex.Transparency/i
print(script.Parent.Tex.Transparency)
end
end

2 comments
Just to add a bit, I like it as for i = 0, 1, 0.01 do obj.Transparency = i end, which will also work
Or you could do "for i = 0, 100 do obj.Transparency = i/100 end". It's generally better to do decimals as late as possible because of floating point errors and other binary/decimal conversion issues. Mostly a best practice thing.