Part of a model I am building uses a tool that I scripted (which is supposed to be a simple export feature class from sde connection to a local gdb for processing) and I'd like to use the output featureclass from that tool as the input to the next common tool in the model. I have read at least a dozen solutions to this same problem from other folks on here over and over but I can not seem to apply the solutions to my specific instance. I am NOT a programmer so this script was thrown together also using examples from around the community.
Here is the piece of the model that I need to connect-

with ConnectandExport being the scripted tool (which works as a standalone script) *I cut off the sde connection parameters in the screenshot but they are valid and the connection succeeds every time)*
