i was practicing making loops and when i tell the script to print the loop it does not work. can someone please explain how i can do this properly. my script is this:~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~e = 1
repeat print (wall) wall = e + 1 until wall == 12
local wall = 0 repeat wait() print(wall) wall = wall + 1 until wall >= 12
You need the wait() and wall was not defined in the start
To add 2 variables in a loop you could do this:
local num1 = 4 local num2 = 2 local total -- we will define this later print(num1+num2) total = num1+num2 -- the total is the first and the second number combined
You can change num1 and num2 to anything.