Code a while loop Next, you'll set up the while loop for the color changing part. On the next line type while true do. Then, press Enter to autocomplete and add the word end. -- Changes the color of loopingPart every few seconds local loopingPart = workspace.LoopingPart -- Looping...
EN1、死循环学会用法 a = 1 while True: print(a) a +=1 2、无限次输入,直到输对...
Add code in the loop With the while loop created, instructions can be added to change the part's color over time. Inside the loop, add a line of code for each color. Each color will use RGB values, a way of storing colors as numbers in computer science. Between while true do and ...