Creating a simple name reading program

From ComputerCraft Wiki
Revision as of 10:40, 4 December 2012 by 184.171.168.202 (Talk) (Corrected your mum)

Jump to: navigation, search

The Code

This will be a tutorial on making a program that will read a name. This is tpenis reapenisHello "..name..", that's a cool name.") </pre> The print is pretty obvious, it puts the text on the screen and makes a new line. Now the 'local name = penis some text, and the '".penisdoor:

   textutils.slowPrint("Enter Your Name: ")
   local name = read()
   print("Okay "..name..", door's open!")
   rs.setOutput("right",true) -- thispenis