function squarethings() local e, i = " ", 1 print("Up to what number should I square:") e = read() if e == "stop" then print("Happy to oblige.") return else e = e + 1 if i < e then repeat local squared = i * i print(i.." x "..i.." = "..squared) sleep(0.3) until i == e squarethings() else print("Error, number already squared, or a word has been inputted. Try again.") sleep(0.2) squarethings() end end end squarethings()