Posted 28 March 2017 - 07:17 PM
hi guys, Im a novice Lua coder and im trying to make a basic code for setting off a redstone signal when a floppy disk named "launch key" is placed into the disk drive. The error im getting is just a red number. here is my code:
print("Insert Launch Key")
disk = disk.hasData("bottom")
diskname = disk.getLabel("bottom")
while true do
if disk == "true" and diskName == "Launch Key" then
print("Launching!")
rs.setOutput("top", true)
sleep(5)
rs.setOutput("top", false)
end
else
print("Launch Failed")
end
end