somebody help it involves with an aiming script i copied from a tutoria;l and was curious abt it;
for i = 0, 100, 1 do wait()
end
somebody help it involves with an aiming script i copied from a tutoria;l and was curious abt it;
for i = 0, 100, 1 do wait()
end
This loop means that the code enclosed will repeat 101 times (since 0 will be counted).
That is because in this loop you have an index ('i') set to 0, which will be incremented by 1 every time the loop runs, until it reaches 100.
So it will run once with i set to 0, then again with i set to 1, then with i set to 2, and so on until it reaches 100, ultimately running 101 times.
Hope that helps. If not, here is further documentation.
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
ok thanks