Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

What does the third number in this mean?

Asked by 10 years ago
for i=0,1,7 do
script.Parent.BackgroundTransparency=i
wait() end


How would the 7 change it? I'm thinking it's the time it takes to go from 0 to 1 transparency, but I'm not sure and I don't know how to test it because I haven't noticed a difference.

1 answer

Log in to vote
1
Answered by
RedCombee 585 Moderation Voter
10 years ago

The 7 in your example would skip numbers. For example, if you have:

for i = 1,10,2 do

That would make the loop go by 2's, making i 1, then 3, then 5, and so on.

0
Ahhhh I get it now! Thank you! :) Devotional 210 — 10y
Ad

Answer this question