Posted 27 June 2015 - 01:11 PM
I might seem like a really big noob asking for this but I am working on a monitor setup stage in a piece of program that I am working on.
Here is my code for the setup part
any help? Thanks
Here is my code for the setup part
attachedMonitor = peripheral.wrap("right")
print("What text size do you want?")
local textscale = read()
monitor.setTextScale(textscale)
print("What background colour do you want?")
local backgroundcolour = read()
attachedMonitor.setBackgroundColor(colors.backgroundcolour)
print("What text colour do you want?")
local textcolour = read()
attachedMonitor.setTextColor(colors.textcolour)
print("Setup Complete")
I run this code and after I have put in 1 for my textscale it says attempt to index ?( a nil value)any help? Thanks