Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local detector = peripheral.find("environment_detector")
- local gearshift = peripheral.find("Create_SequencedGearshift")
- if not detector then
- error("No environment detector found")
- end
- if not gearshift then
- error("No Create Sequenced Gearshift found")
- end
- local isDoorOpen = false -- Initial state of the door
Advertisement