Feeder creating a component with physics joints goes bonkers

I´ve tried using a mix of normal paths and physics paths but ive not seen scripts being used for physics, would you mind showing an example on how to do so?