2/14/2023 0 Comments Roblox infinite loopThe 'while' loop checks itself to see if the condition is true or false. That is telling the script to print the word 'Hello' five times. We do not always have to work with numbers in this type of loop. In that script we are telling it to print 1, 10 but in incraments of 0.1. Lets say that you wanted to print 1, 10 in incraments of 0.1. The variable x is set to be 1, 50 inside a for loop, thus repeating itself 50 times. That script is saying that we wanted it to print x 50 times. Let's say you wanted to print the numbers 1-50, but didnt want to list out every single number? You can simply use this: A 'for' loop is a loop with a set number of times to repeat itself.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |