A surgical stapling attachment is disclosed. The surgical stapling attachment comprises an attachment portion, a shaft assembly, an articulation joint, and an end effector assembly. The end effector assembly comprises a drive system comprising a main drive and a lockout drive driven by a single rotary input. The main drive is configured to capture, clamp, and staple tissue. The lockout drive is configured to prevent the main drive from being driven in the event a staple cartridge is not installed within the end effector assembly. Another lockout is provided to prevent the drive system from being actuated when a spent staple cartridge is installed within the end effector assembly.