COMMUNITY QUESTION
Why isn't this loop printing anything when I start my game?
Asked 190 views0 answers
Here's my code:
for i = 5, .1, -.1 do
if i == .1 then
print("Finished")
end
wait(.1)
end
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.
5 comments
You sure you waited long enough? This takes 5 seconds before it prints
I need it to countdown, when it reaches .1 I need it to run code inside of the if statement.
You didn't answer FloweryMonkeyboy5's question, did you wait long enough? If not, then try changing the first line to
for i = 5, 0, -.1Oh well no code in comments. I see
Yes I waited quite a while.