How to simplify this?
script.Parent.Transparency = 0.1
script.Parent.Transparency = 0.2
script.Parent.Transparency = 0.3
script.Parent.Transparency = 0.4
ect..
How to simplify this?
script.Parent.Transparency = 0.1
script.Parent.Transparency = 0.2
script.Parent.Transparency = 0.3
script.Parent.Transparency = 0.4
ect..
It's pretty simple!
for i = 0, 10 do
script.Parent.Transparency = script.Parent.Transparency + 0.1
wait()
end
###I'd recommend using a numeric for loop.
for i = 0, 1, .1 do -- 0 is starting, 1 is desired, .1 is increment
script.Parent.Transparency = i
wait()
end
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
Thanks:3